Skip to content

Commit fd6d62d

Browse files
committed
Update src/overlay/overlay.js
outerWidth() in jQuery 1.8.2 takes only [true|false] as argument also works for jQuery 1.7.0
1 parent b1b3b1c commit fd6d62d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/overlay/overlay.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@
137137
// position & dimensions
138138
var top = conf.top,
139139
left = conf.left,
140-
oWidth = overlay.outerWidth({margin:true}),
141-
oHeight = overlay.outerHeight({margin:true});
140+
oWidth = overlay.outerWidth(true),
141+
oHeight = overlay.outerHeight(true);
142142

143143
if (typeof top == 'string') {
144144
top = top == 'center' ? Math.max((w.height() - oHeight) / 2, 0) :

0 commit comments

Comments
 (0)