zng_wgt_size_offset

Function force_height

source
pub fn force_height(
    child: impl UiNode,
    height: impl IntoVar<Length>,
) -> impl UiNode
Expand description

P Exact height of the widget ignoring the contextual max.

When set the widget is layout with exact size constraints, ignoring the contextual max. Relative values are computed from the constraints maximum bounded height.

Note that this property deliberately breaks layout and causes out-of-bounds rendering. You can use height instead to set an exact height that is coerced by the contextual max.

ยงforce_size

You can set both force_width and force_height at the same time using the force_size property.