scrollTo

open fun scrollTo(descendant: Widget, scroll: ScrollInfo? = null)

Scrolls a descendant of the viewport into view.

The viewport and the descendant must be visible and mapped for this function to work, otherwise no scrolling will be performed.

Since

4.12

Parameters

descendant

a descendant widget of the viewport

scroll

details of how to perform the scroll operation or NULL to scroll into view