This commit is contained in:
gorhill 2017-09-19 12:58:11 -04:00
parent 2a7810e492
commit 1b6c211fa0
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 8 additions and 2 deletions

View File

@ -523,7 +523,8 @@ var renderOnce = function() {
// scrollbar if ever its height is more than what is available. // scrollbar if ever its height is more than what is available.
// For small displays: we use the whole viewport. // For small displays: we use the whole viewport.
var rpane = uDom.nodeFromSelector('#panes > div:first-of-type'), var panes = uDom.nodeFromId('panes'),
rpane = uDom.nodeFromSelector('#panes > div:first-of-type'),
lpane = uDom.nodeFromSelector('#panes > div:last-of-type'); lpane = uDom.nodeFromSelector('#panes > div:last-of-type');
var fillViewport = function() { var fillViewport = function() {
@ -534,7 +535,12 @@ var renderOnce = function() {
rpane.offsetHeight rpane.offsetHeight
) + 'px' ) + 'px'
); );
lpane.style.setProperty('width', (window.innerWidth - rpane.offsetWidth) + 'px'); // https://github.com/gorhill/uBlock/issues/3038
// - Resize the firewall pane while minding the space between the panes.
lpane.style.setProperty(
'width',
(window.offsetWidth - panes.offsetWidth + lpane.offsetWidth) + 'px'
);
}; };
// https://github.com/gorhill/uBlock/issues/2274 // https://github.com/gorhill/uBlock/issues/2274