Function zng::layout::sticky_size
source · pub fn sticky_size(
child: impl UiNode,
sticky: impl IntoVar<bool>,
) -> impl UiNode
Expand description
P
Retain the widget’s previous size if the new layout size is smaller.
The widget is layout using its previous size as the minimum size constrain.
This property disables inline layout for the widget.