Viewport.setScrollToFocus

void setScrollToFocus(bool scrollToFocus)

Sets whether the viewport should automatically scroll to keep the focused child in view.

Parameters

scrollToFocuswhether to keep the focus widget scrolled to view