Skip to main content

estimated_row_height

Function estimated_row_height 

Source
pub fn estimated_row_height(
    row: &ThreadRow,
    sizes: RowSizes,
    width: f32,
    expanded: &Expanded,
) -> f32
Expand description

How tall a thread row will be, near enough, before it has been laid out, set in sizes in a list width wide, with the long notes among expanded in full. An answer set in is a little narrower than the estimate assumes, and so sometimes a line taller: the list finds out when the row is in view.