Skip to content

Commit cd90766

Browse files
committed
Fixed initial terminal width to prevent overrun
1 parent 9776012 commit cd90766

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/webapp/admin/secure_shell.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
var id = element.attr("id").replace("run_cmd_", "");
241241
242242
if (termMap[id]) {
243-
var width = $('#run_cmd_'+id).find(".output:first").innerWidth();
243+
var width = $('#run_cmd_'+id).find(".output:first").innerWidth() - 8;
244244
var height = $('#run_cmd_'+id).innerHeight() - y_offset;
245245
246246
termMap[id].resize(Math.floor(width / 7.2981), Math.floor(height / 14.4166));

0 commit comments

Comments
 (0)