editors/ConfTreeNodeEditor.py
changeset 846 26836e421e19
parent 844 ec9e6ef49878
child 920 1499a4d225db
--- a/editors/ConfTreeNodeEditor.py	Mon Oct 01 19:13:02 2012 +0200
+++ b/editors/ConfTreeNodeEditor.py	Thu Oct 04 17:55:59 2012 +0200
@@ -378,7 +378,7 @@
                         boxsizer.AddSizer(browse_boxsizer)
                         
                         textctrl = wx.TextCtrl(self.ParamsEditor, 
-                              size=wx.Size(275, 25), style=wx.TE_READONLY)
+                              size=wx.Size(275, -1), style=wx.TE_READONLY)
                         if element_infos["value"] is not None:
                             textctrl.SetValue(element_infos["value"][0])
                             value_infos = element_infos["value"][1]
@@ -395,7 +395,7 @@
                                     button)
                     else:
                         combobox = wx.ComboBox(self.ParamsEditor, 
-                              size=wx.Size(300, 28), style=wx.CB_READONLY)
+                              size=wx.Size(300, -1), style=wx.CB_READONLY)
                         boxsizer.AddWindow(combobox)
                         
                         if element_infos["use"] == "optional":
@@ -430,7 +430,7 @@
                     if "max" in element_infos["type"]:
                         scmax = element_infos["type"]["max"]
                     spinctrl = wx.SpinCtrl(self.ParamsEditor, 
-                          size=wx.Size(300, 25), style=wx.SP_ARROW_KEYS|wx.ALIGN_RIGHT)
+                          size=wx.Size(300, -1), style=wx.SP_ARROW_KEYS|wx.ALIGN_RIGHT)
                     spinctrl.SetRange(scmin, scmax)
                     boxsizer.AddWindow(spinctrl)
                     if element_infos["value"] is not None:
@@ -456,7 +456,7 @@
                             scmin = -(2**31)
                         scmax = 2**31-1
                         spinctrl = wx.SpinCtrl(self.ParamsEditor, 
-                              size=wx.Size(300, 25), style=wx.SP_ARROW_KEYS|wx.ALIGN_RIGHT)
+                              size=wx.Size(300, -1), style=wx.SP_ARROW_KEYS|wx.ALIGN_RIGHT)
                         spinctrl.SetRange(scmin, scmax)
                         boxsizer.AddWindow(spinctrl)
                         if element_infos["value"] is not None:
@@ -472,7 +472,7 @@
                                                         appframe=self, 
                                                         choices=choices, 
                                                         element_path=element_path,
-                                                        size=wx.Size(300, 25))
+                                                        size=wx.Size(300, -1))
                         
                         boxsizer.AddWindow(textctrl)
                         if element_infos["value"] is not None: