zng::layout

Function offset

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

P Widget layout offset.

Relative values are computed from the constraints maximum bounded size.

ยงx and y

You can use the x and y properties to only set the position in one dimension.