1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

Firefox: popup size for menu-panel

This commit is contained in:
Deathamns 2014-12-30 22:24:24 +01:00
parent f0ad21fcf5
commit 05bcc070a9
4 changed files with 12 additions and 3 deletions

View File

@ -105,7 +105,7 @@ function shutdown(data, reason) {
bgProcess.parentNode.removeChild(bgProcess);
// remove the restartObserver only when the extension is being disabled
// Remove the restartObserver only when the extension is being disabled
if ( data !== undefined ) {
restartObserver.unregister();
}

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

View File

@ -7,6 +7,9 @@ body {
padding: 0;
white-space: nowrap;
}
#body:target {
float: none;
}
h1,h2,h3,h4 {
background-color: #444;
border: 0;

View File

@ -8,7 +8,7 @@
<title>µBlock</title>
</head>
<body>
<body id="body">
<a href="dashboard.html" target="_blank" id="gotoPrefs" title="popupTipDashboard"><span id="appname"></span><span id="version"></span></a>
<div id="panes">
<div>