Skip to content

Commit

Permalink
Increase height of widget, display newly saved connectivity on clicki…
Browse files Browse the repository at this point in the history
…ng save
  • Loading branch information
peeplika committed Aug 22, 2024
1 parent 75b525a commit bd2340d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tvbwidgets/ui/connectivity_matrix_editor_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _prepare_matrices_tab(self):

container1 = widgets.Box([out1], layout = widgets.Layout(
width = '1200px',
height = '400px',
height = '600px',
overflow_x = 'auto',
overflow_y = 'auto',
))
Expand Down Expand Up @@ -274,13 +274,13 @@ def on_click_save(self, change):

conn = self.new_connectivity
self.connectivities_history.insert(0, conn)
self.connectivity = conn
self.header.children = list(self.header.children)[:-1] + [self._get_history_dropdown()]

self.new_connectivity = self._prepare_new_connectivity()
self.is_connectivity_being_edited = False
self._update_matrices_view(self.connectivity)


def _prepare_new_connectivity(self):
new_connectivity = Connectivity()
new_connectivity.parent_connectivity = self.connectivity.gid.hex
Expand Down

0 comments on commit bd2340d

Please sign in to comment.