PanelLayout
A panel: a content container with a set of form switches (padding, scrolling, expansion, border), also the base of layout components such as StackLayout.
Basic usage
In the expanded form (on by default) the panel fills its parent via absolute positioning, so the parent must be positioned and sized — the outer div above (its position: relative and height) exists for exactly that; with an unpositioned or unsized parent, the panel expands against a further positioned ancestor (or the viewport) and looks like it "vanished". expanded={false} is the static form, shrinking to fit the content. Layouts built on this component, such as StackLayout, inherit the same premise.
API
See also
- The
hiddenthree-state semantics of the base class: Layout - The paged container built on it: StackLayout