From dafad57d0d32f9070a11ab89215ddebbf1d2c554 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 14 Jan 2015 10:46:07 -0800 Subject: [PATCH] fix scrolling. --- lib/widget.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/widget.js b/lib/widget.js index e7fdd06..180c4d8 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -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) {