Treat the size class as live state
Default
Rule. Read the size class again whenever the window changes, such as on a resize, a turn, a split view, or a fold.
Why. A person can resize, turn, or split the window at any moment. A layout fixed at launch breaks.
- Pick the layout again on every size change.
- Keep the open item through the change (see Rule 5.7).
Do. After the window narrows to 540 px, the layout shows one pane.
Don't. After the window narrows to 540 px, the layout keeps two panes.