swisnl / jQuery-contextMenu

jQuery contextMenu plugin & polyfill
https://swisnl.github.io/jQuery-contextMenu/
MIT License
2.25k stars 745 forks source link

Where to determine in what container context menu should be displayed? #707

Open patrickluethi opened 4 years ago

patrickluethi commented 4 years ago

Where can i say that the jQuery Context Menu should be displayed in. I would like to be able to adjust for example the submenu being always inside a div.

JaZo commented 4 years ago

Hi @patrickluethi, you can use the appendTo option for that.

patrickluethi commented 4 years ago

We already use that option. The Menu gets append to the correct div but when i open it up it will still expand over the appended div.

JaZo commented 4 years ago

Ahh, that's what you mean! I don't know about that, maybe @bbrala can answer you.

patrickluethi commented 4 years ago

The Problem is still active, any solution for this?

patrickluethi commented 4 years ago

image

as you can see i managed to keep it inside the right div but it still expands the wrong way. In this case it should expand the sub menu upwards and not down cause there is not enough space for it.