Resize after terminal has been created
This commit is contained in:
@@ -63,7 +63,6 @@
|
|||||||
$scope.resizeHandler = null;
|
$scope.resizeHandler = null;
|
||||||
|
|
||||||
angular.element($window).bind('resize', function() {
|
angular.element($window).bind('resize', function() {
|
||||||
console.log('windows resize');
|
|
||||||
if ($rootScope.selectedInstance) {
|
if ($rootScope.selectedInstance) {
|
||||||
if (!$scope.resizeHandler) {
|
if (!$scope.resizeHandler) {
|
||||||
$scope.resizeHandler = setTimeout(function() {
|
$scope.resizeHandler = setTimeout(function() {
|
||||||
@@ -497,11 +496,9 @@
|
|||||||
|
|
||||||
// Set geometry during the next tick, to avoid race conditions.
|
// Set geometry during the next tick, to avoid race conditions.
|
||||||
|
|
||||||
/*
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$scope.resize(term.proposeGeometry());
|
$scope.resize(term.proposeGeometry());
|
||||||
}, 4);
|
}, 0);
|
||||||
*/
|
|
||||||
|
|
||||||
instance.terminalBuffer = '';
|
instance.terminalBuffer = '';
|
||||||
instance.terminalBufferInterval = setInterval(function() {
|
instance.terminalBufferInterval = setInterval(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user