Skip to main content

said_height

Function said_height 

Source
pub(super) fn said_height(
    note: &Note,
    sizes: RowSizes,
    width: f32,
    reading: Reading,
) -> f32
Expand description

How tall what note says will be, near enough, set in sizes in room width wide and read as reading says, with the space above each part of it: each line of its text wrapped at a typical line length, the button under a long one, each image at the height it will be shown, each video in the room it has, each note it quotes as its card or its link, and the preview of a page it links to, which is the height it is.