Show More
@@ -56,7 +56,7 b' define([' | |||||
56 |
|
56 | |||
57 | Page.prototype._resize_site = function() { |
|
57 | Page.prototype._resize_site = function() { | |
58 | // Update the site's size. |
|
58 | // Update the site's size. | |
59 |
$('div#site').height(window. |
|
59 | $('div#site').height($(window).height() - $('#header').height()); | |
60 | }; |
|
60 | }; | |
61 |
|
61 | |||
62 | // Register self in the global namespace for convenience. |
|
62 | // Register self in the global namespace for convenience. |
@@ -36,7 +36,7 b' require([' | |||||
36 |
|
36 | |||
37 | var header = $("#header")[0] |
|
37 | var header = $("#header")[0] | |
38 | function calculate_size() { |
|
38 | function calculate_size() { | |
39 |
var height = window. |
|
39 | var height = $(window).height() - header.offsetHeight; | |
40 | var width = $('#terminado-container').width(); |
|
40 | var width = $('#terminado-container').width(); | |
41 | var rows = Math.min(1000, Math.max(20, Math.floor(height/termRowHeight())-1)); |
|
41 | var rows = Math.min(1000, Math.max(20, Math.floor(height/termRowHeight())-1)); | |
42 | var cols = Math.min(1000, Math.max(40, Math.floor(width/termColWidth())-1)); |
|
42 | var cols = Math.min(1000, Math.max(40, Math.floor(width/termColWidth())-1)); | |
@@ -57,7 +57,7 b' require([' | |||||
57 | var geom = calculate_size(); |
|
57 | var geom = calculate_size(); | |
58 | terminal.term.resize(geom.cols, geom.rows); |
|
58 | terminal.term.resize(geom.cols, geom.rows); | |
59 | terminal.socket.send(JSON.stringify(["set_size", geom.rows, geom.cols, |
|
59 | terminal.socket.send(JSON.stringify(["set_size", geom.rows, geom.cols, | |
60 |
window. |
|
60 | $(window).height(), $(window).width()])); | |
61 | }; |
|
61 | }; | |
62 |
|
62 | |||
63 | }); |
|
63 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now