From f1e9bc363ea2062df99c12c9515701c8fa0420b4 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Tue, 30 Dec 2014 22:24:24 +0100 Subject: [PATCH] Firefox: popup size for menu-panel --- platform/firefox/vapi-background.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 1aa49d4..563b688 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -648,7 +648,13 @@ vAPI.toolbarButton.init = function() { label: vAPI.app.name, tooltiptext: vAPI.app.name, onViewShowing: function({target}) { - target.firstChild.setAttribute('src', vAPI.getURL('popup.html')); + var hash = CustomizableUI.getWidget(vAPI.toolbarButton.widgetId) + .areaType === CustomizableUI.TYPE_TOOLBAR ? '' : '#body'; + + target.firstChild.setAttribute( + 'src', + vAPI.getURL('popup.html' + hash) + ); }, onViewHiding: function({target}) { target.firstChild.setAttribute('src', 'about:blank');