Skip to main content

list_scroller

Function list_scroller 

Source
pub fn list_scroller<'a>(
    position: &'a Cell<f32>,
    content: impl Into<Element<'a, Message>>,
) -> Element<'a, Message>
Expand description

content, a view’s list and whatever it has above and under it, in the scroller the views share, which keeps position at how far it is scrolled, and starts out there.

The scroller is as tall as what is in it, up to the room there is for it: what the popup may be tall (see popup_max_height), less whatever the view puts above it.