pub fn scroll<Msg: Clone>(child: impl Into<Element<Msg>>) -> Scroll<Msg>Expand description
Create a scrollable viewport wrapping child. Defaults to vertical
scrolling; chain Scroll::horizontal or Scroll::both to
switch axes.
The parent layout controls the viewport size by assigning a rect to this widget. Content that overflows along the allowed axis is scrolled via drag gestures or the scroll wheel.
scroll( column().push( text( "A" ) ).push( text( "B" ) ) )
.into()