diff --git a/fsl/fslview/views/viewpanel.py b/fsl/fslview/views/viewpanel.py index 588601495b1026056d8a4c1fad72fc4e601165fc..cd44d8392f1b6371ab7ad206f552c9369f8ea9c4 100644 --- a/fsl/fslview/views/viewpanel.py +++ b/fsl/fslview/views/viewpanel.py @@ -190,9 +190,9 @@ class ViewPanel(fslpanel.FSLViewPanel): window = panelType( self, self._overlayList, self._displayCtx, *args, **kwargs) - window.SetWindowVariant(wx.WINDOW_VARIANT_SMALL) - if isinstance(window, fsltoolbar.FSLViewToolBar): + + # ToolbarPane sets the panel layer to 10 paneInfo.ToolbarPane() # We are going to put any new toolbars on @@ -219,8 +219,6 @@ class ViewPanel(fslpanel.FSLViewPanel): info.dock_direction == aui.AUI_DOCK_TOP: info.Layer(info.dock_layer + 1) - paneInfo.Layer(0) - # When the toolbar contents change, # update the layout, so that the # toolbar's new size is accommodated