Skip to main content

minimum_card_height

Function minimum_card_height 

pub fn minimum_card_height(
    text_renderer: &mut TextRenderer,
    theme: &Theme,
    card: &ToastCard<'_>,
) -> f64
Expand description

Minimum height for a compact card with one elided line per text field. Uses the same normalized text, roles, padding and shared action controls as paint_card. A host choosing a fixed-width banner must reserve this height before stacking cards; enlarging type must not paint text over its actions.