このページの翻訳はまだありません。英語版を表示しています。

BoxSizing

Box sizing enumeration

Controls how the total width and height of an element is calculated. This corresponds to the CSS box-sizing property.

Example

import { Style, BoxSizing } from "taffy-layout"; const style = new Style(); style.boxSizing = BoxSizing.BorderBox; // Size includes padding and border style.boxSizing = BoxSizing.ContentBox; // Size is content only

Enumeration Members

Enumeration MemberValueDescription
BorderBox0The width and height properties include padding and border
ContentBox1The width and height properties include only the content

© 2026 ByteLand Technology Limited