minor fix. potential fixes.
This commit is contained in:
parent
2953a469da
commit
34e451bbfa
|
@ -1857,6 +1857,10 @@ function Element(options) {
|
|||
self.parseContent();
|
||||
});
|
||||
|
||||
// this.on('detach', function() {
|
||||
// delete self._lpos;
|
||||
// });
|
||||
|
||||
if (options.hoverBg != null) {
|
||||
options.hoverEffects = options.hoverEffects || {};
|
||||
options.hoverEffects.bg = options.hoverBg;
|
||||
|
@ -3083,6 +3087,10 @@ Element.prototype.render = function() {
|
|||
|
||||
ch = content[ci++] || bch;
|
||||
|
||||
// if (!content[ci] && !coords._contentEnd) {
|
||||
// coords._contentEnd = { x: x - xi, y: y - yi };
|
||||
// }
|
||||
|
||||
// Handle escape codes.
|
||||
while (ch === '\x1b') {
|
||||
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
|
||||
// scrolling elements.
|
||||
// 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;
|
||||
b = p.yl - this.ibottom - 1;
|
||||
d = this.childBase - base;
|
||||
|
|
Loading…
Reference in New Issue