Function zng_wgt_size_offset::height
source · pub fn height(child: impl UiNode, height: impl IntoVar<Length>) -> impl UiNode
Expand description
P
Exact height of the widget.
When set the widget is layout with exact size constraints, clamped by the contextual min/max. Relative values are computed from the constraints maximum bounded height.
This property disables inline layout for the widget. This property sets the WIDGET_SIZE
height.
See also force_height
to deliberately break layout and cause out-of-bounds rendering when
the exact height cannot fit in the contextual min/max.
§size
You can set both width
and height
at the same time using the size
property.