mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 04:27:59 +01:00
Poke "Stupid, fallable heuristic" in scrolling code.
--HG-- extra : rebase_source : af80ea5701d073993e3e5f0c98c1947f7a9c65cb
This commit is contained in:
@@ -90,7 +90,7 @@ function Buffer() //{{{
|
||||
let borderSize = parseInt(style[border1]) + parseInt(style[border2]);
|
||||
let realSize = elem[size];
|
||||
// Stupid Gecko eccentricities. May fail for quirks mode documents.
|
||||
if (elem[size] + borderSize == elem[layoutSize] || elem[size] == 0) // Stupid, fallible heuristic.
|
||||
if (elem[size] + borderSize == elem[max] || elem[size] == 0) // Stupid, fallible heuristic.
|
||||
continue;
|
||||
if (style[overflow] == "hidden")
|
||||
realSize += borderSize;
|
||||
|
||||
Reference in New Issue
Block a user