From dc9e84c2b80b45bfda50958e69d3ed806330162e Mon Sep 17 00:00:00 2001 From: Guillaume Favelier Date: Wed, 23 Mar 2022 15:22:43 +0100 Subject: [PATCH] fix --- mne/gui/_coreg.py | 6 +++--- mne/viz/backends/_notebook.py | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mne/gui/_coreg.py b/mne/gui/_coreg.py index a55986082c0..ac891e0cb3d 100644 --- a/mne/gui/_coreg.py +++ b/mne/gui/_coreg.py @@ -1731,13 +1731,13 @@ def _configure_dock(self): filter='Head->MRI transformation (*-trans.fif *_trans.fif)', initial_directory=str(Path(self._info_file).parent), ) + self._renderer._layout_add_widget(trans_layout, save_trans_layout) self._widgets["reset_trans"] = self._renderer._dock_add_button( - name="Reset", + name="Reset Parameters", callback=self._reset, tooltip="Reset all the parameters affecting the coregistration", - layout=save_trans_layout, + layout=trans_layout, ) - self._renderer._layout_add_widget(trans_layout, save_trans_layout) fitting_options_layout = self._renderer._dock_add_group_box( name="Fitting Options", diff --git a/mne/viz/backends/_notebook.py b/mne/viz/backends/_notebook.py index 17542efde7e..e8eaf0301fc 100644 --- a/mne/viz/backends/_notebook.py +++ b/mne/viz/backends/_notebook.py @@ -196,7 +196,7 @@ def _dock_initialize(self, window=None, name="Controls", if self._docks is None: self._docks = dict() current_dock = VBox() - self._dock_width = 300 + self._dock_width = 302 self._dock = self._dock_layout = current_dock self._dock.layout.width = f"{self._dock_width}px" self._layout_initialize(self._dock_width) @@ -268,10 +268,12 @@ def _dock_add_check_box(self, name, value, callback, *, tooltip=None, widget = Checkbox( value=value, description=name, + indent=False, disabled=False ) + hbox = HBox([widget]) # fix stretching to the right widget.observe(_generate_callback(callback), names='value') - self._layout_add_widget(layout, widget) + self._layout_add_widget(layout, hbox) return _IpyWidget(widget) def _dock_add_spin_box(self, name, value, rng, callback, *,