swisnl / jQuery-contextMenu

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

Submenus at wrong position when combining with Bootstrap #577

Closed omsiqveland closed 6 years ago

omsiqveland commented 6 years ago

Im using Bootstrap v3 in my project, which makes the submenus look like this: image It appears to be due to Bootstrap defining box-sizing: border-box; for all elements by default, but the jquery-contextmenu calculates its submenu coordinates as if based on box-sizing: content-box. Hence, adding the following css solves my problem: .context-menu-item { box-sizing: content-box; }

Since contextmenu requires its items to be box-sizing: content-box; this should be added by default to jquery-contextmenu.css?

bbrala commented 6 years ago

Hmm, good point, thanks for reporting.