object WindowDefaults
MatchParent
: Dp
[Get] |
A width or height that matches the parent panel's measured size on that axis — the SDK requests the main panel's own measured pixel size (from display metrics) rather than a fixed dp. Pair it with a fixed dp on the other axis (e.g. size(320.dp, MatchParent)) for a fixed-width, full-height side pane, or use WindowDefaults.MatchParentSize to match both axes. New modifier chains can use width(320.dp).matchParentHeight() or matchParentWidth().matchParentHeight() instead.
Signature
val MatchParent: Dp |
MatchParentSize
: WindowSize
[Get] |
Size that matches the parent panel on both axes.
Signature
val MatchParentSize: WindowSize |