From 1b6c211fa01cc3a5a82e3f263f907210b3ce5a0d Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 19 Sep 2017 12:58:11 -0400 Subject: [PATCH] fix #3038 --- src/js/popup.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/js/popup.js b/src/js/popup.js index 4869e6287..f292eac87 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -523,7 +523,8 @@ var renderOnce = function() { // scrollbar if ever its height is more than what is available. // 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'); var fillViewport = function() { @@ -534,7 +535,12 @@ var renderOnce = function() { rpane.offsetHeight ) + '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