EE-1976 fix(docker): modify code according to review

pull/7697/head
RexWangPT 2022-09-22 12:30:27 +08:00 committed by testa113
parent ac99b9561e
commit 996a0967b5
1 changed files with 3 additions and 1 deletions

View File

@ -156,7 +156,9 @@ angular.module('portainer.docker').controller('ContainerConsoleController', [
function resize(restcall, add) {
add = add || 0;
fitAddon.fit();
if (fitAddon) {
fitAddon.fit();
}
var termWidth = term.cols;
var termHeight = 30;
term.resize(termWidth, termHeight);