Open m1keyboy opened 1 month ago
When using the ContextMenu component that contains nested items, the displayed submenu does not perform collision detection on the Y axis. It looks like some improvements were recently attempted here - https://github.com/primefaces/primevue/commit/cba43b310b75be1d6e437ca3b532fd41b4ba4946#diff-c6ca045bcd1ffaee382f973a803ba6be86a152e0cb4c07780b955e047d79fc0c - but that appears to only be concerned with the X axis.
ContextMenu
https://stackblitz.com/edit/primevue-4-vite-issue-template-ccakui?file=src%2FApp.vue
4.0.5
4.x
TypeScript
Vite
Chrome 128.0.6613.115
Submenus within the ContextMenu component should also perform collision detection on the Y axis. Where possible, if a submenu is going to collide with the top/bottom edge of the viewport, the submenu orientation should flip.
Getting this too
This is becoming a real problem for our users, any updates?
Describe the bug
When using the
ContextMenu
component that contains nested items, the displayed submenu does not perform collision detection on the Y axis. It looks like some improvements were recently attempted here - https://github.com/primefaces/primevue/commit/cba43b310b75be1d6e437ca3b532fd41b4ba4946#diff-c6ca045bcd1ffaee382f973a803ba6be86a152e0cb4c07780b955e047d79fc0c - but that appears to only be concerned with the X axis.Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-ccakui?file=src%2FApp.vue
PrimeVue version
4.0.5
Vue version
4.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome 128.0.6613.115
Steps to reproduce the behavior
Expected behavior
Submenus within the
ContextMenu
component should also perform collision detection on the Y axis. Where possible, if a submenu is going to collide with the top/bottom edge of the viewport, the submenu orientation should flip.