1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +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); 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 ) { if ( data !== undefined ) {
restartObserver.unregister(); restartObserver.unregister();
} }

View File

@ -648,7 +648,13 @@ vAPI.toolbarButton.init = function() {
label: vAPI.app.name, label: vAPI.app.name,
tooltiptext: vAPI.app.name, tooltiptext: vAPI.app.name,
onViewShowing: function({target}) { 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}) { onViewHiding: function({target}) {
target.firstChild.setAttribute('src', 'about:blank'); target.firstChild.setAttribute('src', 'about:blank');

View File

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

View File

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