minor fix. potential fixes.

This commit is contained in:
Christopher Jeffrey 2013-08-13 13:02:02 -05:00
parent 2953a469da
commit 34e451bbfa
1 changed files with 9 additions and 1 deletions

View File

@ -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;