1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-13 15:54:54 +12:00

Firefox: popup size for menu-panel

This commit is contained in:
Deathamns 2014-12-30 22:24:24 +01:00 committed by gorhill
parent 71b0c22c9d
commit f1e9bc363e

View file

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