preferredSize

Deprecated

Set it in the component's style: style = { preferredSize(size) }

Sets preferredSize and relays out; null restores the layout-computed preferred size.

Return

this modifier with the preferred size declared on it.

Parameters

size

the size the parent's layout manager is asked for.

See also


Deprecated

Set it in the component's style: style = { preferredSize(width, height) }

Sets preferredSize to Dimension(width, height) and relays out.

Return

this modifier with the preferred size declared on it.

Parameters

width

the width the parent's layout manager is asked for.

height

the height it is asked for.

See also