mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-11 11:34:20 +00:00
minor fix. potential fixes.
This commit is contained in:
parent
2953a469da
commit
34e451bbfa
@ -1857,6 +1857,10 @@ function Element(options) {
|
|||||||
self.parseContent();
|
self.parseContent();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// this.on('detach', function() {
|
||||||
|
// delete self._lpos;
|
||||||
|
// });
|
||||||
|
|
||||||
if (options.hoverBg != null) {
|
if (options.hoverBg != null) {
|
||||||
options.hoverEffects = options.hoverEffects || {};
|
options.hoverEffects = options.hoverEffects || {};
|
||||||
options.hoverEffects.bg = options.hoverBg;
|
options.hoverEffects.bg = options.hoverBg;
|
||||||
@ -3083,6 +3087,10 @@ Element.prototype.render = function() {
|
|||||||
|
|
||||||
ch = content[ci++] || bch;
|
ch = content[ci++] || bch;
|
||||||
|
|
||||||
|
// if (!content[ci] && !coords._contentEnd) {
|
||||||
|
// coords._contentEnd = { x: x - xi, y: y - yi };
|
||||||
|
// }
|
||||||
|
|
||||||
// Handle escape codes.
|
// Handle escape codes.
|
||||||
while (ch === '\x1b') {
|
while (ch === '\x1b') {
|
||||||
if (c = /^\x1b\[[\d;]*m/.exec(content.substring(ci - 1))) {
|
if (c = /^\x1b\[[\d;]*m/.exec(content.substring(ci - 1))) {
|
||||||
@ -3759,7 +3767,7 @@ ScrollableBox.prototype.scroll = function(offset, always) {
|
|||||||
// or if we **really** want shrinkable
|
// or if we **really** want shrinkable
|
||||||
// scrolling elements.
|
// scrolling elements.
|
||||||
// p = this._getCoords();
|
// p = this._getCoords();
|
||||||
if (this.childBase !== base && this.screen.cleanSides(this)) {
|
if (p && this.childBase !== base && this.screen.cleanSides(this)) {
|
||||||
t = p.yi + this.itop;
|
t = p.yi + this.itop;
|
||||||
b = p.yl - this.ibottom - 1;
|
b = p.yl - this.ibottom - 1;
|
||||||
d = this.childBase - base;
|
d = this.childBase - base;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user