Class AutoPositionStrategy

Positions the element as in Connected positioning strategy and re-positions the element in the view port (calculating a different start point) in case the element is partially getting out of view

Hierarchy

Hierarchy

  • BaseFitPositionStrategy
    • AutoPositionStrategy

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