Skip to content

Commit 166ae9c

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 2fcd673 + d8826a3 commit 166ae9c

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ $.contextMenu is published under the [MIT license](http://www.opensource.org/lic
102102
* Added dist folder with compiled JS and CSS, added these files to package and bower configuration.
103103
* Fixed doc link for jQuery UI position ([Issue #274](https://github.com/swisnl/jQuery-contextMenu/issues/274)
104104
* Item icon can now be a callback to dynamically decide on icon class. - ([Issue #158](https://github.com/swisnl/jQuery-contextMenu/issues/158), [Issue #129](https://github.com/swisnl/jQuery-contextMenu/issues/129), [Issue #151](https://github.com/swisnl/jQuery-contextMenu/issues/151), [Issue #249](https://github.com/swisnl/jQuery-contextMenu/issues/249))
105+
* Small fix to calculating width and height on screen edges when padding is present.
105106

106107
### 1.7.0 (August 29th 2015) ###
107108

dist/jquery.contextMenu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* MIT License http://www.opensource.org/licenses/mit-license
1313
* GPL v3 http://opensource.org/licenses/GPL-3.0
1414
*
15-
* Date: 2015-09-11T19:12:25.157Z
15+
* Date: 2015-09-11T19:40:21.884Z
1616
*/
1717

1818

@@ -145,8 +145,8 @@
145145
// correct offset if viewport demands it
146146
var bottom = $win.scrollTop() + $win.height(),
147147
right = $win.scrollLeft() + $win.width(),
148-
height = opt.$menu.height(),
149-
width = opt.$menu.width();
148+
height = opt.$menu.outerHeight(),
149+
width = opt.$menu.outerWidth();
150150

151151
if (offset.top + height > bottom) {
152152
offset.top -= height;

0 commit comments

Comments
 (0)