zng::scroll

Function define_viewport_unit

source
pub fn define_viewport_unit(
    child: impl UiNode,
    enabled: impl IntoVar<bool>,
) -> impl UiNode
Expand description

P If the scroll defines its viewport size as the LayoutMetrics::viewport for the scroll content.

This property sets the DEFINE_VIEWPORT_UNIT_VAR.