Ticket URL: <
http://trac.wxwidgets.org/ticket/14698>
#14698: Empty wxStaticBoxSizers aren't properly displayed
--------------------------------------------+-------------------------------
Reporter: dghart | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.5
Component: GUI-all | Version: 2.9-svn
Keywords: empty wxStaticBoxSizer display | Blockedby:
Patch: 0 | Blocking:
--------------------------------------------+-------------------------------
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.
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/14698>