Skip to content
Snippets Groups Projects
Commit 4f45ea89 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Fix ViewPanel putting panels on the same layer as toolbars

parent 515c5eb8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment