Wrong wxFrame size calculation in wxGTK
|Reported by:||afalkenhahn||Owned by:|
I'm using SetSizeHints() to give my TLW a fixed height. Precisely, I use it like this in my wxFrame's CTOR:
panel->SetSizer(vbox); SetClientSize(panel->GetBestSize()); int height = GetSize().GetHeight(); SetSizeHints(-1, height, -1, height);
This works fine with 2.8.12 on MSW, GTK, Carbon and with 3.0.0 on MSW, Carbon, Cocoa. However, it doesn't work correctly on GTK with 3.0.0. I attach a screenshot to this ticket where you can see what it looks like with 2.8.12 on GTK and 3.0.0 on GTK. You can see that the control buttons are cut off in 3.0.0.
I tried to use SetMinClientSize() and SetMaxClientSize() as a workaround but this doesn't work either. The window size is always calculated too small.