jQuery-contextMenu icon indicating copy to clipboard operation
jQuery-contextMenu copied to clipboard

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

Open patrickluethi opened this issue 5 years ago • 5 comments

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.

patrickluethi avatar Nov 01 '19 10:11 patrickluethi

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

JaZo avatar Nov 01 '19 10:11 JaZo

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.

patrickluethi avatar Nov 01 '19 10:11 patrickluethi

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

JaZo avatar Nov 01 '19 11:11 JaZo

The Problem is still active, any solution for this?

patrickluethi avatar Nov 08 '19 07:11 patrickluethi

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.

patrickluethi avatar Nov 14 '19 07:11 patrickluethi