diff --git a/app/static/coffees/main.coffee b/app/static/coffees/main.coffee index c3a1198..d4e6a6a 100644 --- a/app/static/coffees/main.coffee +++ b/app/static/coffees/main.coffee @@ -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 diff --git a/app/static/javascripts/main.js b/app/static/javascripts/main.js index d462647..b0c8128 100644 --- a/app/static/javascripts/main.js +++ b/app/static/javascripts/main.js @@ -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);