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

ElasticPositionStrategy

new ElasticPositionStrategy(settings: PositionSettings): ElasticPositionStrategy

Defined in projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts:33

Returns ElasticPositionStrategy

Inherited from: BaseFitPositionStrategy

PositionSettings to use when position the component in the overlay

settings: PositionSettings

Defined in projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts:21

Inherited from: BaseFitPositionStrategy

Creates clone of this position strategy

clone(): IPositionStrategy

Defined in projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts:58

Returns IPositionStrategy

Inherited from: BaseFitPositionStrategy

Position the element based on the PositionStrategy implementing this interface.

position(contentElement: HTMLElement, size: Size, document: Document, initialCall: boolean, target: HTMLElement | Point): void

Defined in projects/igniteui-angular/core/src/services/overlay/position/base-fit-position-strategy.ts:20

Parameters

  • contentElement: HTMLElement

    The HTML element to be positioned

  • size: Size

    Size of the element

  • document: Document

    reference to the Document object

  • initialCall: boolean

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

  • target: HTMLElement | Point

    attaching target for the component to show

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

Returns void