Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Commit 3982bd6

Browse files
committed
Merge pull request #478 from chrisaljoudi/master
Safari: remove extra call to popup resize -- now smoother
2 parents 1591593 + 1c60434 commit 3982bd6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

platform/safari/vapi-popup.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ var whenSizeChanges = function(elm, callback) {
5656
var onLoaded = function() {
5757
var body = document.body, popover = safari.self;
5858
var updateSize = function() {
59-
popover.width = body.offsetWidth;
60-
popover.height = body.offsetHeight;
59+
popover.width = body.clientWidth;
60+
popover.height = body.clientHeight;
6161
};
62-
updateSize();
6362
body.style.position = "relative"; // Necessary for size change detection
6463
whenSizeChanges(body, updateSize);
6564
};

0 commit comments

Comments
 (0)