[GRASS-SVN] r61486 - grass/trunk/gui/wxpython/web_services

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 31 11:40:08 PDT 2014


Author: annakrat
Date: 2014-07-31 11:40:08 -0700 (Thu, 31 Jul 2014)
New Revision: 61486

Modified:
   grass/trunk/gui/wxpython/web_services/dialogs.py
   grass/trunk/gui/wxpython/web_services/widgets.py
Log:
wxGUI/wms: fix main dialog on Mac

Modified: grass/trunk/gui/wxpython/web_services/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/web_services/dialogs.py	2014-07-31 17:56:09 UTC (rev 61485)
+++ grass/trunk/gui/wxpython/web_services/dialogs.py	2014-07-31 18:40:08 UTC (rev 61486)
@@ -451,7 +451,7 @@
         self.active_ws_panel = self.ws_panels[ws]['panel']
         self.active_ws_panel.Show()
         self.SetMaxSize((-1, -1))
-        self.Layout()
+        self.active_ws_panel.GetContainingSizer().Layout()
 
     def OnAdvConnPaneChanged(self, event):
         """Collapse search module box

Modified: grass/trunk/gui/wxpython/web_services/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/web_services/widgets.py	2014-07-31 17:56:09 UTC (rev 61485)
+++ grass/trunk/gui/wxpython/web_services/widgets.py	2014-07-31 18:40:08 UTC (rev 61486)
@@ -118,6 +118,8 @@
         self.cmd_thread = CmdThread(self)
         self.cap_file = grass.tempfile()
 
+        reqDataBox = wx.StaticBox(parent=self, label=_(" Requested data settings "))
+        self._nb_sizer = wx.StaticBoxSizer(reqDataBox, wx.VERTICAL)
         self.notebook = GNotebook(parent = self,
                                   style = FN.FNB_FANCY_TABS | FN.FNB_NO_X_BUTTON)
 
@@ -136,12 +138,8 @@
         grass.try_remove(self.cap_file)
 
     def _layout(self):
-        reqDataBox = wx.StaticBox(parent = self, id = wx.ID_ANY,
-                                  label = _(" Requested data settings "))
-        sizer = wx.StaticBoxSizer(reqDataBox, wx.VERTICAL)
-        sizer.Add(item = self.notebook, proportion = 1,
-                  flag = wx.EXPAND)
-        self.SetSizer(sizer)
+        self._nb_sizer.Add(item=self.notebook, proportion=1, flag=wx.EXPAND)
+        self.SetSizer(self._nb_sizer)
 
     def _requestPage(self):
         """Create request page"""



More information about the grass-commit mailing list