We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d79132f + 6fd2257 commit e9cb28dCopy full SHA for e9cb28d
src/jquery.contextMenu.js
@@ -1241,7 +1241,7 @@
1241
// determine width of absolutely positioned element
1242
$menu.css({position: 'absolute', display: 'block'});
1243
// don't apply yet, because that would break nested elements' widths
1244
- $menu.data('width', Math.ceil($menu.width()));
+ $menu.data('width', Math.ceil($menu.outerWidth()));
1245
// reset styles so they allow nested elements to grow/shrink naturally
1246
$menu.css({
1247
position: 'static',
src/sass/jquery.contextMenu.scss
@@ -31,7 +31,6 @@
31
min-width: $context-menu-min-width;
32
padding: $context-menu-container-padding;
33
position: absolute;
34
- white-space: pre;
35
}
36
37
.context-menu-item {
0 commit comments