Просмотр исходного кода

wxGUI Manage color rules interactively (vector map): fix wx.CollapsiblePane widget layout (#449)

Tomas Zigo 5 лет назад
Родитель
Сommit
854a8a48f9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      gui/wxpython/modules/colorrules.py

+ 1 - 1
gui/wxpython/modules/colorrules.py

@@ -1251,7 +1251,7 @@ class VectorColorTable(ColorTable):
 
     def OnPaneChanged(self, event=None):
         # redo the layout
-        self.Layout()
+        self.panel.Layout()
         # and also change the labels
         if self.cp.IsExpanded():
             self.cp.SetLabel('')