Primeng: Improve ContextMenu collision detection

Created on 30 Jun 2017  路  4Comments  路  Source: primefaces/primeng

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
Submenu is position properly only when it is opened on the right side of the viewport. It is displayed correctly on the left side then. (this was fixed in #1596)

Expected behavior
Could you please also fix the position of the submenu when it is open at the bottom of the page? It overflows the bottom of the viewport.
contextmenu-issue

What is the motivation / use case for changing the behavior?
Submenu should reposition itself on all sides of the viewport, not just when open near the right edge

  • Angular version: 4.2.2

  • PrimeNG version: 4.1.0

enhancement

Most helpful comment

This is still reproducible with the latest version.

All 4 comments

We use the contextMenu in a p-tree in our app and we have this exact issue. Is it planned to be fix in the future ?
Thanks!

Is there a plan to fix this? We use the contextMenu component in our application and it frequently overflows its container.

This is still reproducible with the latest version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garethlewis picture garethlewis  路  3Comments

Faigjaz picture Faigjaz  路  3Comments

jisqaqov picture jisqaqov  路  3Comments

mitosandov picture mitosandov  路  3Comments

lilling picture lilling  路  3Comments