Skip to content

Commit 9662292

Browse files
committed
Merge pull request #265 from swisnl/issue-197-menu-width
Fix for growing menu width for issue #197
2 parents f519cf0 + b031722 commit 9662292

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/jquery.contextMenu.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1115,8 +1115,7 @@ var // currently active contextMenu trigger
11151115
// determine width of absolutely positioned element
11161116
$menu.css({position: 'absolute', display: 'block'});
11171117
// don't apply yet, because that would break nested elements' widths
1118-
// add a pixel to circumvent word-break issue in IE9 - #80
1119-
$menu.data('width', Math.ceil($menu.width()) + 1);
1118+
$menu.data('width', Math.ceil($menu.width()));
11201119
// reset styles so they allow nested elements to grow/shrink naturally
11211120
$menu.css({
11221121
position: 'static',

0 commit comments

Comments
 (0)