Browse Source

Firefox: popup size for menu-panel

pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
f1e9bc363e
  1. 8
      platform/firefox/vapi-background.js

8
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');

Loading…
Cancel
Save