commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9316 - trunk/gnue-forms/src/uidrivers/wx26/widgets


From: johannes
Subject: [gnue] r9316 - trunk/gnue-forms/src/uidrivers/wx26/widgets
Date: Mon, 15 Jan 2007 09:04:44 -0600 (CST)

Author: johannes
Date: 2007-01-15 09:04:39 -0600 (Mon, 15 Jan 2007)
New Revision: 9316

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py
Log:
if no GNUe:Sizer:max_width is specified, use the GFField's length (if 
available).


Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py        2007-01-15 
14:44:20 UTC (rev 9315)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py        2007-01-15 
15:04:39 UTC (rev 9316)
@@ -98,7 +98,9 @@
             cellw, cellh = self._uiDriver.cellWidth, self._uiDriver.cellHeight
             mins = wx.Size((self.min_width * cellw) or -1,
                     (self.min_height * cellh) or -1)
-            maxs = wx.Size((self.max_width * cellw) or -1,
+
+            length = self.max_width or self._gfObject._field.length or 0
+            maxs = wx.Size((length * cellw) or -1,
                     (self.max_height * cellh) or -1)
             return (mins, maxs)
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]