Skip to main content

layout_stack

Function layout_stack 

Source
pub fn layout_stack(
    toasts: &[ToastRecord],
    heights: &HashMap<SharedString, f32>,
    expanded: bool,
    visible_toasts: usize,
) -> (Vec<StackTarget>, f32)
Expand description

Computes exact stacked / expanded target positions, scales, heights, and container height matching layoutStack in toast-stack.tsx lines 111-123.