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 MemberValueDescription
Clip1Clipped, non-scrollable overflow semantics; retain content-based automatic minimum sizes
Hidden2Hidden overflow semantics; allow the automatic minimum size to shrink to zero
Scroll3Reserve scrollbar space using scrollbarWidth and allow zero automatic minimum sizes
Visible0Visible overflow semantics; retain content-based automatic minimum sizes

© 2026 ByteLand Technology Limited