Component: ContextMenu is not aligned properly when the document is scrolled #12011
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
If the document is scrolled and we try to open a contextmenu which is too big to open at the cursor then the contextmenu gets aligned outside of the viewport.
See attached stackblitz.
Environment
Latest Angular and Primeng in chrome or firefox.
Reproducer
https://stackblitz.com/edit/github-qspcge?file=src%2Fapp%2Fapp.component.html,src%2Fstyles.scss
Angular version
14.x.x
PrimeNG version
14.x.x
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
14.18.3
Browser(s)
No response
Steps to reproduce the behavior
Reproduction steps are available in stackblitz.
Expected behavior
ContextMenu should appear as if the document wasn't scrolled or at least it should not get aligned outside of viewport.
The text was updated successfully, but these errors were encountered: