Skip to content

Commit

Permalink
Fix for growing menu with for issue 197.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Aug 18, 2015
1 parent f519cf0 commit b031722
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 b031722

Please sign in to comment.