From ae0fdc8d10fac5813af80b752490247f75c8d580 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 29 Jul 2015 14:18:52 -0400 Subject: [PATCH] this fixes #308 --- platform/firefox/vapi-background.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 7057c19..98ed5b1 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1931,8 +1931,11 @@ vAPI.toolbarButton = { } var tbb = vAPI.toolbarButton; + var popupCommittedWidth = 0; + var popupCommittedHeight = 0; tbb.onViewShowing = function({target}) { + popupCommittedWidth = popupCommittedHeight = 0; target.firstChild.setAttribute('src', vAPI.getURL('popup.html')); }; @@ -1970,8 +1973,6 @@ vAPI.toolbarButton = { }; var scrollBarWidth = 0; - var popupCommittedWidth = 0; - var popupCommittedHeight = 0; var resizeTimer = null; var resizePopupDelayed = function(attempts) {