Skip to main content

Module responsive

Module responsive 

Source
Expand description

Breakpoint selection and proportional layout scaling (RGL-style).

Structs§

BreakpointSpec
Describes one responsive breakpoint (usually paired with CSS media queries).

Functions§

scale_layout_cols
Scale x/w when column count changes (React-Grid-Layout style). h/y are left unchanged; run a crate::Compactor afterward if needed.
select_breakpoint
Pick the breakpoint with the largest min_width_px such that container_width_px >= min_width_px. breakpoints should be sorted by min_width_px ascending.