swisnl / jQuery-contextMenu

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

Make submenu width "auto" #642

Closed bhuvidya closed 6 years ago

bhuvidya commented 6 years ago

Is there a quick and neat way, via CSS, or plugin options, to allow submenus to not inherit width from toplevel menu, but instead have an auto-width, up to a limit? I tried applying max-width to .context-menu-list, but this doesn't effect an inherited width from the toplevel menu.

bbrala commented 6 years ago

You do need to do this with CSS only, shouldn't you also specify something like width:auto; on the elements then? CSS is not really my strong suit :)

bbrala commented 6 years ago

Closed due to inactivity.