Skip to main content

estimated_note_height

Function estimated_note_height 

Source
pub fn estimated_note_height(
    note: &Note,
    sizes: RowSizes,
    width: f32,
    in_full: bool,
) -> f32
Expand description

How tall a note’s row will be, near enough, before it has been laid out, set in sizes in a list width wide: what the note says, all of it if a long one shows in_full, and around it the room above, the author’s picture or their name beside it, whichever is taller, the line of actions, and the line under the row. The list replaces this with the measured height once the row has been in view.