Overflow
Overflow handling enumeration
Controls overflow sizing, automatic minimum sizes, and scrollbar space.
This corresponds to the CSS overflow property.
Taffy computes layout only; clipping, drawing, and scrolling are implemented
by the renderer consuming the layout.
Example
import { Style, Overflow } from "taffy-layout"; const style = new Style(); style.overflow = { x: Overflow.Hidden, y: Overflow.Scroll };
Enumeration Members
| Enumeration Member | Value | Description |
|---|---|---|
Clip | 1 | Clipped, non-scrollable overflow semantics; retain content-based automatic minimum sizes |
Hidden | 2 | Hidden overflow semantics; allow the automatic minimum size to shrink to zero |
Scroll | 3 | Reserve scrollbar space using scrollbarWidth and allow zero automatic minimum sizes |
Visible | 0 | Visible overflow semantics; retain content-based automatic minimum sizes |