fix scrolling.

This commit is contained in:
Christopher Jeffrey 2015-01-14 10:46:07 -08:00
parent 101058517b
commit dafad57d0d

View File

@ -3049,7 +3049,12 @@ Element.prototype._getCoords = function(get, noscroll) {
// XXX
// Fixes non-`fixed` labels to work with scrolling (they're ON the border):
b = 0;
if (this.position.left < 0
|| this.position.right < 0
|| this.position.top < 0
|| this.position.bottom < 0) {
b = 0;
}
if (yi < ppos.yi + b) {
if (yl - 1 < ppos.yi + b) {