Empty wxStaticBoxSizers aren't properly displayed
|Reported by:||dghart||Owned by:|
|Keywords:||empty wxStaticBoxSizer display||Cc:||juliansmart|
The wxStaticBox of an empty wxStaticBoxSizer is displayed at the top-left of its parent container. This can most easily be seen in the 'controls section of the xrcdemo, but the attached patch to 'minimal' also demonstrates the issue. Adding a child to the sizer makes the display normal.
This bisects to r65079 "Don't show empty sizers" and, as suggested, the wxRESERVE_SPACE_EVEN_IF_HIDDEN flag fixes the issue. However I wonder if wxStaticBoxSizer should be an exception to the "Don't show" rule.
Even if not, the xrcdemo should be fixed, presumably with wxRESERVE_SPACE_EVEN_IF_HIDDEN. I'll attach before/after screenshots of it.
Change History (5)
comment:1 Changed 4 years ago by vadz
- Cc juliansmart added
- Milestone changed from 2.9.5 to 3.0
- Priority changed from normal to low
- Status changed from new to confirmed