mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
attempt at fixing #362
This commit is contained in:
parent
e858c91224
commit
69d4a0aa0a
@ -2131,9 +2131,12 @@ vAPI.toolbarButton = {
|
|||||||
resizeTimer = null;
|
resizeTimer = null;
|
||||||
var body = iframe.contentDocument.body;
|
var body = iframe.contentDocument.body;
|
||||||
panel.parentNode.style.maxWidth = 'none';
|
panel.parentNode.style.maxWidth = 'none';
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uMatrix/issues/362
|
||||||
|
panel.parentNode.style.opacity = '1';
|
||||||
|
|
||||||
// https://github.com/chrisaljoudi/uBlock/issues/730
|
// https://github.com/chrisaljoudi/uBlock/issues/730
|
||||||
// Voodoo programming: this recipe works
|
// Voodoo programming: this recipe works
|
||||||
|
|
||||||
var clientHeight = body.clientHeight;
|
var clientHeight = body.clientHeight;
|
||||||
iframe.style.height = toPx(clientHeight);
|
iframe.style.height = toPx(clientHeight);
|
||||||
panel.style.height = toPx(clientHeight + panel.boxObject.height - panel.clientHeight);
|
panel.style.height = toPx(clientHeight + panel.boxObject.height - panel.clientHeight);
|
||||||
|
@ -3,6 +3,7 @@ body {
|
|||||||
border: 0;
|
border: 0;
|
||||||
float: left;
|
float: left;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
opacity: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
Loading…
Reference in New Issue
Block a user