mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-29 16:39:41 +00:00
Okay okay
This commit is contained in:
@@ -48,7 +48,7 @@ $ ->
|
||||
$termtest.remove()
|
||||
w = $main.outerWidth()
|
||||
h = $main.outerHeight()
|
||||
cols = Math.floor(w / ew)
|
||||
cols = Math.floor(w / ew) - 1
|
||||
rows = Math.floor(h / eh)
|
||||
console.log "Computed #{cols} cols and #{rows} rows from main size #{w}, #{h} and div #{ew}, #{eh}"
|
||||
term.resize cols, rows
|
||||
|
||||
@@ -57,7 +57,7 @@ $(function() {
|
||||
$termtest.remove();
|
||||
w = $main.outerWidth();
|
||||
h = $main.outerHeight();
|
||||
cols = Math.floor(w / ew);
|
||||
cols = Math.floor(w / ew) - 1;
|
||||
rows = Math.floor(h / eh);
|
||||
console.log("Computed " + cols + " cols and " + rows + " rows from main size " + w + ", " + h + " and div " + ew + ", " + eh);
|
||||
term.resize(cols, rows);
|
||||
|
||||
Reference in New Issue
Block a user