Skip to content

Commit d664908

Browse files
committed
Fixing word break problem - Issue swisnl#80
1 parent c45143c commit d664908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.contextMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ var // currently active contextMenu trigger
10771077
// determine width of absolutely positioned element
10781078
$menu.css({position: 'absolute', display: 'block'});
10791079
// don't apply yet, because that would break nested elements' widths
1080-
$menu.data('width', $menu.width());
1080+
$menu.data('width', Math.ceil($menu.width()) + 1);
10811081
// reset styles so they allow nested elements to grow/shrink naturally
10821082
$menu.css({
10831083
position: 'static',

0 commit comments

Comments
 (0)