Ticket #2603 (closed defect: fixed)
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-184.108.40.206 on Linux, and I've
also seen the same behaviour with 220.127.116.11 on MSWin.