Parcourir la source

wxGUI: fix sizer issue in wxPython 3, https://trac.osgeo.org/grass/ticket/2542 (merge from trunk, https://trac.osgeo.org/grass/changeset/64030)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64031 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová il y a 10 ans
Parent
commit
a093b771ff
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      gui/wxpython/mapwin/decorations.py

+ 3 - 3
gui/wxpython/mapwin/decorations.py

@@ -320,9 +320,7 @@ class TextLayerDialog(wx.Dialog):
 
         self.sizer = wx.BoxSizer(wx.VERTICAL)
         box = wx.GridBagSizer(vgap=5, hgap=5)
-        box.AddGrowableCol(1)
-        box.AddGrowableRow(1)
-        
+
         # show/hide
         self.chkbox = wx.CheckBox(parent=self, id=wx.ID_ANY,
                                   label=_('Show text object'))
@@ -370,6 +368,8 @@ class TextLayerDialog(wx.Dialog):
                 flag=wx.ALIGN_RIGHT,
                 pos=(3, 1))
 
+        box.AddGrowableCol(1)
+        box.AddGrowableRow(1)
         self.sizer.Add(item=box, proportion=1,
                        flag=wx.ALL | wx.EXPAND, border=10)