1) Go on stackbiltz
2) Shrink the window vertically until you can no longer see the writing and the red background
3) Open the dialog using the button
4) Navigate forwards and backwards between months
5) The calendar is rendered first above and then below even if there is enough space to always remain in the same position
Expected behavior
The calendar should always have the same location if there is space available.
It would be very nice to be able to specify a fixed default position (left | right | top | bottom)
Due to PrimeNG team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. :sparkles: Thank you for your contribution! :sparkles:
Describe the bug
By moving back and forth between months, the calendar is rendered in different positions despite there being space.
(Use large screen to replicate)
Environment
Angular > 17 PrimeNG > 17
Reproducer
https://stackblitz.com/edit/github-5eeyk6-9uzckn?file=src%2Fapp%2Fapp.component.scss
Angular version
18.2.3
PrimeNG version
17.18.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.11
Browser(s)
No response
Steps to reproduce the behavior
1) Go on stackbiltz 2) Shrink the window vertically until you can no longer see the writing and the red background 3) Open the dialog using the button 4) Navigate forwards and backwards between months 5) The calendar is rendered first above and then below even if there is enough space to always remain in the same position
Expected behavior
The calendar should always have the same location if there is space available.
It would be very nice to be able to specify a fixed default position (left | right | top | bottom)