Skip to main content

visible_range

Function visible_range 

Source
pub fn visible_range(
    scroll_top: f64,
    viewport_height: f64,
    item_height: f64,
    overscan: usize,
    total: usize,
) -> (usize, usize)
Expand description

The half-open range of item indices to render for a virtualized, fixed-row-height list, given the current scroll offset and viewport. Shared by every windowed view (VirtualList, Table, CodeSurface, MultiEditor).