浏览代码

wxGUI: correct position of WMS dialog

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

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

@@ -1512,6 +1512,8 @@ class GMFrame(wx.Frame):
         from web_services.dialogs import AddWSDialog
         from web_services.dialogs import AddWSDialog
         dlg = AddWSDialog(parent = self, gmframe = self)
         dlg = AddWSDialog(parent = self, gmframe = self)
         dlg.CentreOnScreen()
         dlg.CentreOnScreen()
+        x, y = dlg.GetPosition()
+        dlg.SetPosition((x, y - 200))
         dlg.Show()
         dlg.Show()
 
 
     def OnShowAttributeTable(self, event, selection = None):
     def OnShowAttributeTable(self, event, selection = None):