Function squash

Source
pub fn squash<L: Layout>(l: &L, container: Vec2) -> MinimumNatural<Vec2>
Expand description

Provides a default prefered_size_of_container implementation of sorts.

It will try and ‘squash’ the widget into the container. Prior to 0.6 this was the default for prefered_size_of_container