viewport_ratio

Function viewport_ratio 

Source
pub fn viewport_ratio(wgt: &mut WidgetBuilding, ratio: impl IntoVar<Factor>)
Expand description

B Viewport/content ratio.

This becomes the height for vertical and width for horizontal.

ยงMixin Property

This property is a mixin, it modifies the widget builder during build, it does not produce a standalone UI node.