mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-02-27 01:50:44 +00:00
fix scrolling.
This commit is contained in:
parent
101058517b
commit
dafad57d0d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user