Function zng::layout::sticky_width

source ·
pub fn sticky_width(
    child: impl UiNode,
    sticky: impl IntoVar<bool>,
) -> impl UiNode
Expand description

P Retain the widget’s previous width if the new layout width is smaller. The widget is layout using its previous width as the minimum width constrain.

This property disables inline layout for the widget.