Class ElasticPositionStrategy

Positions the element as in Connected positioning strategy and resize the element to fit in the view port in case the element is partially getting out of view

Hierarchy

Hierarchy

  • BaseFitPositionStrategy
    • ElasticPositionStrategy

Constructors

Properties

Methods

Constructors

Properties

PositionSettings to use when position the component in the overlay

Methods

  • Position the element based on the PositionStrategy implementing this interface.

    Parameters

    • contentElement: HTMLElement

      The HTML element to be positioned

    • size: Size

      Size of the element

    • Optional document: Document

      reference to the Document object

    • Optional initialCall: boolean

      should be true if this is the initial call to the method

    • Optional target: HTMLElement | Point

      attaching target for the component to show

      settings.positionStrategy.position(content, size, document, true);
      

    Returns void