From bd29055610aa01502086469bf1c910d89923363b Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Sun, 25 Aug 2019 15:15:19 -0300 Subject: [PATCH] Resize after terminal has been created --- www/assets/app.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/www/assets/app.js b/www/assets/app.js index 9a3bf08..81a584d 100644 --- a/www/assets/app.js +++ b/www/assets/app.js @@ -63,7 +63,6 @@ $scope.resizeHandler = null; angular.element($window).bind('resize', function() { - console.log('windows resize'); if ($rootScope.selectedInstance) { if (!$scope.resizeHandler) { $scope.resizeHandler = setTimeout(function() { @@ -497,11 +496,9 @@ // Set geometry during the next tick, to avoid race conditions. - /* setTimeout(function() { $scope.resize(term.proposeGeometry()); - }, 4); - */ + }, 0); instance.terminalBuffer = ''; instance.terminalBufferInterval = setInterval(function() {