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 Member | Value | Description |
|---|---|---|
BorderBox | 0 | The width and height properties include padding and border |
ContentBox | 1 | The width and height properties include only the content |