Sfoglia il codice sorgente

wxGUI/dialog: setting height

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44677 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 anni fa
parent
commit
97c216bbbc
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      gui/wxpython/gui_modules/menuform.py

+ 7 - 2
gui/wxpython/gui_modules/menuform.py

@@ -864,8 +864,13 @@ class mainFrame(wx.Frame):
         
         sizeFrame = self.GetBestSize()
         self.SetMinSize(sizeFrame)
-        self.SetSize(wx.Size(sizeFrame[0], sizeFrame[1] + 0.33 * max(self.notebookpanel.panelMinHeight,
-                                                                     self.notebookpanel.constrained_size[1])))
+        
+        if hasattr(self, "closebox"):
+            scale = 0.33
+        else:
+            scale = 0.50
+        self.SetSize(wx.Size(sizeFrame[0], sizeFrame[1] + scale * max(self.notebookpanel.panelMinHeight,
+                                                                      self.notebookpanel.constrained_size[1])))
         
         # thread to update dialog
         # create queues