Minor fixes

This commit is contained in:
Florian Mounier
2014-02-14 10:49:21 +01:00
parent 2d03625763
commit b14afe2247
2 changed files with 4 additions and 4 deletions

View File

@@ -1408,10 +1408,10 @@ class Terminal
if j < @rows
el = @element
while j++ < @rows
@lines.push @blankLine() if @lines.length < y + @ybase
@lines.push @blankLine() if @lines.length < @rows + @ybase
if @children.length < @rows
line = @document.createElement("div")
@line.className = 'line'
line.className = 'line'
line.style.height = @char_size.height + 'px'
el.appendChild line
@children.push line

View File

@@ -1334,12 +1334,12 @@ Terminal = (function() {
if (j < this.rows) {
el = this.element;
while (j++ < this.rows) {
if (this.lines.length < y + this.ybase) {
if (this.lines.length < this.rows + this.ybase) {
this.lines.push(this.blankLine());
}
if (this.children.length < this.rows) {
line = this.document.createElement("div");
this.line.className = 'line';
line.className = 'line';
line.style.height = this.char_size.height + 'px';
el.appendChild(line);
this.children.push(line);