Skip to content

Commit aacc40a

Browse files
committed
Merge pull request BrandwatchLtd#2 from kamilio/fix-overlay
Fix overlay center alignment for new jQuery version
2 parents 168558c + e92f64d commit aacc40a

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
@@ -134,8 +134,8 @@
134134
// position & dimensions
135135
var top = conf.top,
136136
left = conf.left,
137-
oWidth = overlay.outerWidth({margin:true}),
138-
oHeight = overlay.outerHeight({margin:true});
137+
oWidth = overlay.outerWidth(true),
138+
oHeight = overlay.outerHeight(true);
139139

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

0 commit comments

Comments
 (0)