# 5.2 Treat the size class as live state

> Chapter 5, Adapt across sizes. Section: Read the window. Guide: https://www.designguide.dev/md/05-adapt-across-sizes.md#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](https://www.designguide.dev/r/keep-state-across-a-layout-change.md)).

**Picture:** 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.

**See:** [5.7 Keep state across a layout change](https://www.designguide.dev/r/keep-state-across-a-layout-change.md)
