zng::layout

Function margin

source
pub fn margin(
    child: impl UiNode,
    margin: impl IntoVar<SideOffsets>,
) -> impl UiNode
Expand description

P Margin space around the widget.

This property adds side offsets to the widget inner visual, it will be combined with the other layout properties of the widget to define the inner visual position and widget size.

This property disables inline layout for the widget.