1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-09 07:45:22 +02:00

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

This commit is contained in:
RexWangPT 2022-09-22 12:30:27 +08:00 committed by testa113
parent ac99b9561e
commit 996a0967b5

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);