[GRASS-SVN] r64386 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 1 04:35:28 PST 2015


Author: martinl
Date: 2015-02-01 04:35:28 -0800 (Sun, 01 Feb 2015)
New Revision: 64386

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix height of mapdisplay loaded from workspace (wxPython 3)
       TODO: replace this hack in the future


Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2015-02-01 10:56:16 UTC (rev 64385)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2015-02-01 12:35:28 UTC (rev 64386)
@@ -1281,8 +1281,12 @@
                 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']



More information about the grass-commit mailing list