SetRowSize() in a grid not working correctly

Hello,

I have met a small problem with the SetRowSize() method of a grid.
I would like to put:
- some rows to 0 height in order to hide them
- all other rows with a 20 height,
but it doesn't work.
I can increase some cells' height more than the "standard" one (20) but cannot
reduce the height below the standard height.
Is this a bug or am I missing something ?

self.grid.SetRowLabelSize(20)
self.grid.SetColLabelSize(20)

self.grid.SetRowSize(10,0)# row 10, height 0
self.grid.ForceRefresh()

Thanks
Dominique

DomDom wrote:

Hello,

I have met a small problem with the SetRowSize() method of a grid.
I would like to put:
- some rows to 0 height in order to hide them - all other rows with a 20 height,
but it doesn't work.
I can increase some cells' height more than the "standard" one (20) but cannot
reduce the height below the standard height.
Is this a bug or am I missing something ?

You need to also call SetRowMinimalHeight(row, minHeight) to allow the row to be sized smaller than the default minimum.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!