1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 02:42:33 +01:00
Raymond Hill 2018-06-14 08:29:38 -04:00
parent 7e890cb681
commit 4bcf578606
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -591,9 +591,11 @@ var renderOnce = function() {
resizeTimer = undefined; resizeTimer = undefined;
// Do not use equality, fractional pixel dimension occurs and must // Do not use equality, fractional pixel dimension occurs and must
// be ignored. // be ignored.
// https://www.reddit.com/r/uBlockOrigin/comments/8qodpw/how_to_hide_the_info_shown_of_what_is_currently/e0lglrr/
// Tolerance of 2px fixes the issue.
if ( if (
Math.abs(document.body.offsetWidth - window.innerWidth) < 2 && Math.abs(document.body.offsetWidth - window.innerWidth) <= 2 &&
Math.abs(document.body.offsetHeight - window.innerHeight) < 2 Math.abs(document.body.offsetHeight - window.innerHeight) <= 2
) { ) {
return; return;
} }