Open alexbjorlig opened 5 years ago
Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
Steps to reproduce:
When viewport height is too low, I expect the overlay to be centered in the viewport. To quote the overlay api withPush:
withPush
Sets whether the overlay can be pushed on-screen if none of the provided positions fit.
The overlay is positioned with the provided position strategies:
.withPositions([ { panelClass: 'custom-panel1', originX: 'center', originY: 'center', overlayX: 'start', overlayY: 'top', }, { panelClass: 'custom-panel2', originX: 'center', originY: 'center', overlayX: 'start', overlayY: 'bottom', }, ]),
But none of them should be used, because they push the content off-screen.
any updates on this?
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
Steps to reproduce:
Expected Behavior
When viewport height is too low, I expect the overlay to be centered in the viewport. To quote the overlay api
withPush
:Actual Behavior
The overlay is positioned with the provided position strategies:
But none of them should be used, because they push the content off-screen.
Environment