pub const SCROLL_TO_VIEW: Selector<Rect>;Expand description
Informs this widget that a child wants a specific region to be shown. The payload is the requested region in global coordinates.
This notification is sent when scroll_to_view or scroll_area_to_view
is called.
Widgets which hide their children should always call ctx.set_handled() when receiving this to
avoid unintended behaviour from widgets further down the tree.
If possible the widget should move its children to bring the area into view and then submit
a new SCROLL_TO_VIEW notification with the same region relative to the new child position.
When building a new widget using ClipBox, take a look at ClipBox::managed and
Viewport::default_scroll_to_view_handling.