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
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.