diff --git a/platform/safari/vapi-popup.js b/platform/safari/vapi-popup.js index 47fe3bf86..de5497acc 100644 --- a/platform/safari/vapi-popup.js +++ b/platform/safari/vapi-popup.js @@ -56,10 +56,9 @@ var whenSizeChanges = function(elm, callback) { var onLoaded = function() { var body = document.body, popover = safari.self; var updateSize = function() { - popover.width = body.offsetWidth; - popover.height = body.offsetHeight; + popover.width = body.clientWidth; + popover.height = body.clientHeight; }; - updateSize(); body.style.position = "relative"; // Necessary for size change detection whenSizeChanges(body, updateSize); };