width

Sets the component's actual width to width, keeping its current height, like setSize(width, height). See size (the Int overload) for when this takes effect and how size/width/height compose.

Return

this modifier with the width declared on it.

Parameters

width

the width in pixels; the height written with it is the one the component holds when the write runs - whatever the last declaration or layout pass left there.

See also