Skip to main content

Module layout

Module layout 

Source
Expand description

The width classes a view’s container is laid out in (layout.md, “Responding to space”).

One token, read by the toolkit’s layout (ui::widget::WidthClass) and by a tilolang app’s space: a window is compact, medium, expanded or wide by the same widths in both, so what an app reads and what the shell lays out agree on when a window is compact.

Constants§

COMPACT_BELOW
The width, in rem, below which a container is compact.
EXPANDED_BELOW
The width, in rem, below which a container is expanded.
HYSTERESIS
How far past a boundary a size has to go before its class changes, in rem: a window resized right at a boundary keeps one class instead of flickering between two.
MEDIUM_BELOW
The width, in rem, below which a container is medium.