Martin Craig wrote:
I can make it work with a FlexGridSizer, but unfortunately I need multi-column spanning in the real application.
Seems like a bug to me - any thoughts?
You are using the ClientSize of the grid itself to size the grid, which seems kinda recursive. Try using the ClientSize of what it's contained in; replace
w, h = self.GetClientSize()
with
w,h = self.GetParent().GetClientSize()
It won't be pixel-perfect, because it doesn't account for the grid chrome. You may need to fudge a little.
regards, Anders