Resize after terminal has been created

This commit is contained in:
Marcos Lilljedahl
2019-08-25 15:15:19 -03:00
parent 8d1065bccc
commit bd29055610

View File

@@ -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() {