commit-gnue
[Top][All Lists]
Advanced

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

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


From: reinhard
Subject: [gnue] r9467 - trunk/gnue-forms/src/uidrivers/wx26/widgets
Date: Mon, 9 Apr 2007 15:41:46 -0500 (CDT)

Author: reinhard
Date: 2007-04-09 15:41:46 -0500 (Mon, 09 Apr 2007)
New Revision: 9467

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/widgets/hbox.py
Log:
Do not use stretch factors in AddGrowableCol because wx assignes the whole
space according to that stretch factor instead of only the extra space.


Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/hbox.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/hbox.py 2007-04-07 18:22:30 UTC 
(rev 9466)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/hbox.py 2007-04-09 20:41:46 UTC 
(rev 9467)
@@ -85,7 +85,11 @@
         # Only columns having a stretch greater than zero require a growable
         # column.  Setting a stretch of 0 breaks the size calculation anyway.
         if add and ui_widget.stretch:
-            self._sizer.AddGrowableCol(self.last_item, ui_widget.stretch)
+            # FIXME: If a stretch factor is used, the *whole* newly calculated
+            # size is distributed according to this stretch factor, instead of
+            # only the extra space.
+            # self._sizer.AddGrowableCol(self.last_item, ui_widget.stretch)
+            self._sizer.AddGrowableCol(self.last_item)
 
         self.last_item += add
 





reply via email to

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