Explorar o código

wxGUI/modeler: action shape size cosmetics

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58664 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=11) %!d(string=hai) anos
pai
achega
b2d133f94f
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      gui/wxpython/gmodeler/model.py

+ 1 - 2
gui/wxpython/gmodeler/model.py

@@ -1062,14 +1062,13 @@ class ModelAction(ModelObject, ogl.DividedShape):
     def SetComment(self, comment):
         """!Set comment"""
         if self.regionComment is None:
-            self.SetHeight(self.GetHeight() * 2)
             self.regionComment = ogl.ShapeRegion()
             self.regionComment.SetFormatMode(ogl.FORMAT_CENTRE_HORIZ)
             font = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT)
             font.SetStyle(wx.ITALIC)
             self.regionComment.SetFont(font)
             self.AddRegion(self.regionComment)
-            self.regionLabel.SetProportions(0.0, 0.3)
+            self.regionLabel.SetProportions(0.0, 0.4)
             
         self.comment = comment
         self.regionComment.SetText(comment)