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.

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

  • get maxHeight(): number
  • The computed maximum height of the widget.

    Notes

    This value can be updated by calling the fit method.

    Returns number

  • get maxWidth(): number
  • The computed maximum width of the widget.

    Notes

    This value can be updated by calling the fit method.

    Returns number

  • get minHeight(): number
  • The computed minimum height of the widget.

    Notes

    This value can be updated by calling the fit method.

    Returns number

  • get minWidth(): number
  • The computed minimum width of the widget.

    Notes

    This value can be updated by calling the fit method.

    Returns number

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