From 1c604349775ba97d09a5d5bc575e45a18966815c Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 11 Jan 2015 19:37:10 -0700 Subject: [PATCH] Safari: remove extra call to popup resize -- now smoother --- platform/safari/vapi-popup.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/safari/vapi-popup.js b/platform/safari/vapi-popup.js index 1bf7e3352..660755349 100644 --- a/platform/safari/vapi-popup.js +++ b/platform/safari/vapi-popup.js @@ -35,10 +35,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); };