Skip to content

Commit

Permalink
Merge pull request #265 from swisnl/issue-197-menu-width
Browse files Browse the repository at this point in the history
Fix for growing menu width for issue #197
  • Loading branch information
bbrala committed Aug 18, 2015
2 parents f519cf0 + b031722 commit 9662292
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/jquery.contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1115,8 +1115,7 @@ var // currently active contextMenu trigger
// determine width of absolutely positioned element
$menu.css({position: 'absolute', display: 'block'});
// don't apply yet, because that would break nested elements' widths
// add a pixel to circumvent word-break issue in IE9 - #80
$menu.data('width', Math.ceil($menu.width()) + 1);
$menu.data('width', Math.ceil($menu.width()));
// reset styles so they allow nested elements to grow/shrink naturally
$menu.css({
position: 'static',
Expand Down

0 comments on commit 9662292

Please sign in to comment.