scrollTo

abstract fun scrollTo(x: Int, y: Int)

Moves the pane to x, y in view coordinates, coerced to what the content reaches.

The coercion is against the metrics of this moment, so a block running before the content has been laid out writes 0 and follows the content as it grows. While no pane renders the state there is no content to coerce against, and the position is taken verbatim.

Parameters

x

the view coordinate to show at the viewport's left edge, coerced into 0..maxX.

y

the view coordinate to show at the viewport's top edge, coerced into 0..maxY.

See also