pub fn force_width(
child: impl UiNode,
width: impl IntoVar<Length>,
) -> impl UiNode
Expand description
P
Exact width 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 width.
Note that this property deliberately breaks layout and causes out-of-bounds rendering. You
can use width
instead to set an exact width 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.