Ticket #14698 (closed defect: fixed)
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.