1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 07:48:00 +01:00

Poke "Stupid, fallable heuristic" in scrolling code.

--HG--
extra : rebase_source : af80ea5701d073993e3e5f0c98c1947f7a9c65cb
This commit is contained in:
Kris Maglione
2009-10-21 04:41:12 -04:00
parent c25c443a4a
commit 382cbe6691

View File

@@ -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;