Selaa lähdekoodia

wxGUI: fix height of mapdisplay loaded from workspace (wxPython 3)
TODO: replace this hack in the future


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64386 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 vuotta sitten
vanhempi
commit
21435865c8
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      gui/wxpython/lmgr/frame.py

+ 5 - 1
gui/wxpython/lmgr/frame.py

@@ -1281,8 +1281,12 @@ class GMFrame(wx.Frame):
                 if display['pos']:
                     mapdisp.SetPosition(display['pos'])
                 if display['size']:
+                    if globalvar.wxPython3:
+                        # incorrect height
+                        # TODO: fix it in better way (...)
+                        display['size'] = (display['size'][0], display['size'][1] + 32)
                     mapdisp.SetSize(display['size'])
-                    
+            
             # set extent if defined
             if display['extent']:
                 w, s, e, n, b, t = display['extent']