DescriptionBoxLayout: Added set_collapse_when_hidden(), like views::Label.
When this is set to true, GetPreferredSize returns 0x0 if the host is
invisible. This allows you to set a BoxLayout-controlled view to
invisible and have it properly disappear (instead of taking up space).
The default behaviour is unchanged.
One day, this should be available on all views, but for now,
generalizing it to BoxLayout is better than nothing.
BUG=548551
Patch Set 1 #
Total comments: 3
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 7 (2 generated)
|