WarUI

Container resize handling and sizing modes

GRID-A06-F20P0baselinePlanned

The grid observes its container with ResizeObserver, then recomputes the viewport, rendered ranges, pool size and pinned pane constraints. Sizing modes cover a fixed height, filling the parent, and auto height that grows with rows up to a maximum, beyond which it virtualizes. Layouts embedded in flex, grid, dialogs and tabs behave predictably.

Planned. This page shows the specification from issue #183. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid inside a draggable resizable panel, in sizingMode fill.

Expected behavior

Dragging the panel updates the grid on each frame, with no blank rows. Auto mode with few rows shows no scrollbar; above maxAutoHeight it virtualizes. Revealing a hidden tab renders correctly without manual refresh.

Planned API surface

sizingModemaxAutoHeightonViewportResizerefreshLayout()

Acceptance criteria

  • A container resize triggers at most one layout recompute per frame. (pending)
  • Auto mode with total height at or below maxAutoHeight renders all rows without an inner scrollbar. (pending)
  • A grid initialized while hidden renders correctly on first visibility. (pending)
  • refreshLayout() is documented as needed only for non-observable changes. (pending)