mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
Minor fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user