constrainToViewport property

  1. @Input()
set constrainToViewport (bool constrainToViewport)

Sets whether the popup should be constrained to the viewport.

If this is true, then the popup's positioned will be clamped to always be within the viewport instead of moving off-screen.

Implementation

@Input()
set constrainToViewport(bool constrainToViewport);