mirror of https://github.com/portainer/portainer
EE-1976 fix(docker): modify code according to review
parent
ac99b9561e
commit
996a0967b5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue