Class LayoutItem

An object which assists in the absolute layout of widgets.

Notes

This class is useful when implementing a layout which arranges its widgets using absolute positioning.

This class is used by nearly all of the built-in lumino layouts.

Hierarchy

  • LayoutItem

Implements

Constructors

Properties

_disposed: boolean = false
_height: number = NaN
_left: number = NaN
_maxHeight: number = Infinity
_maxWidth: number = Infinity
_minHeight: number = 0
_minWidth: number = 0
_top: number = NaN
_width: number = NaN
widget: Widget

The widget managed by the layout item.

Accessors

Methods

  • Update the position and size of the managed widget.

    Parameters

    • left: number

      The left edge position of the layout box.

    • top: number

      The top edge position of the layout box.

    • width: number

      The width of the layout box.

    • height: number

      The height of the layout box.

    Returns void

Generated using TypeDoc