浏览代码

wxGUI: workaround for invalid map display height (only relrb70 issue)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67737 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父节点
当前提交
039c29d715
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      gui/wxpython/lmgr/frame.py

+ 4 - 0
gui/wxpython/lmgr/frame.py

@@ -1818,6 +1818,10 @@ class GMFrame(wx.Frame):
                 x, y = map(int, dim.split(',')[idx:idx + 2])
                 w, h = map(int, dim.split(',')[idx + 2:idx + 4])
                 self.GetMapDisplay().SetPosition((x, y))
+                # map display is sized with different height, this
+                # extra call "solves" the issue, strangely trunk
+                # doens't have this issue (TODO: investigate why)
+                self.GetMapDisplay().SetSize((w, h-1)) 
                 self.GetMapDisplay().SetSize((w, h))
             except:
                 pass