Pilates
    Preparing search index...

    Interface ComputedLayout

    Computed layout values stored on each Node. These are written by calculateLayout() (M4 onwards) and read via Node.getComputedLayout().

    All values are in integer terminal cells, relative to the parent node's top-left corner.

    interface ComputedLayout {
        height: number;
        left: number;
        scrollHeight: number;
        scrollWidth: number;
        top: number;
        width: number;
    }
    Index

    Properties

    height: number
    left: number
    scrollHeight: number
    scrollWidth: number

    Natural content width. For nodes with overflow !== 'visible', this is the bounding box of children unbounded by the parent's content width. For non-overflow nodes, equals the node's own width.

    top: number
    width: number