wxFlexGridSizer AddGrowableRow/Col problem
|Reported by:||finell||Owned by:|
I just noticed a slight problem with the growable
handling of the FlexGridSizer. If I'm calling the
AddGrowableRow/Col twice for the same row/col, the
proportion between two items is no longer the same when
resizing the window, ie. the item having the growable
set twice will grow larger than the other one.
Here's an example code that you could paste into the
sizers test code in the wxPython demo.
gs = wx.FlexGridSizer(2,1)
(SampleWindow(win, 'two'), 0, wx.EXPAND)
# the extra call will make the first row grow
# the second row
Now running the "Flexible Grid" test case will show you
what I mean.
I know, that not calling AddGrowableRow/Col multiple
times will of course "fix" this problem. But I feel
that this should probably be taken care of in a lower
Oh, this is with wxPython-22.214.171.124 on Linux, and I've
also seen the same behaviour with 126.96.36.199 on MSWin.
Change History (8)
comment:2 Changed 7 years ago by wojdyr
- Patch set
- Status changed from new to confirmed
- Version set to 2.9-svn