IDEFrame.py
changeset 2256 5927710b5610
parent 2243 02f03bd7639e
child 2301 5b8a7dd43f9f
--- a/IDEFrame.py	Mon Jul 30 19:02:36 2018 +0300
+++ b/IDEFrame.py	Mon Jul 30 19:28:39 2018 +0300
@@ -2164,9 +2164,9 @@
                         self.Bind(wx.EVT_MENU, getattr(self, method), id=id)
                         self.CurrentEditorToolBar.append(id)
                 EditorToolBar.Realize()
-                self.AUIManager.GetPane("EditorToolBar").BestSize(EditorToolBar.GetBestSize())
                 self.AUIManager.GetPane("EditorToolBar").Show()
                 self.AUIManager.Update()
+                self.AUIManager.GetPane("EditorToolBar").BestSize(EditorToolBar.GetBestSize())
         elif menu is None:
             self.ResetEditorToolBar()
             self.CurrentMenu = menu