Function zng::layout::max_height
source · pub fn max_height(
child: impl UiNode,
max_height: impl IntoVar<Length>,
) -> impl UiNode
Expand description
P
Maximum height of the widget.
The widget height can be smaller then this but not larger. Relative values are computed from the constraints maximum bounded height.
This property does not force the maximum constrained height, the max_height
is only used
if it is less then the constrained maximum, or the maximum was not constrained.
This property disables inline layout for the widget.
§max_size
You can set both max_width
and max_height
at the same time using the max_size
property.