From d8b0cd36157306540632299b03e95368ac8952f7 Mon Sep 17 00:00:00 2001 From: Carlos Venegas Date: Sun, 10 Nov 2024 19:47:30 +0100 Subject: [PATCH] Fix render properly code areas in load --- app/scripts/services/graph.js | 4 ---- app/scripts/services/utils.js | 7 ++++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/scripts/services/graph.js b/app/scripts/services/graph.js index 7cffa480..bfa0b83e 100644 --- a/app/scripts/services/graph.js +++ b/app/scripts/services/graph.js @@ -27,13 +27,9 @@ angular.module('icestudio') window ) { - /*-- This is a temporal trick to maintain wires ordered and avoid anoing wire rumble when navigate - between modules, we fix with the new engine , meanwhile this works --*/ let _this=this; $('body').on('Graph::updateWires',function(){ - //setTimeout(function(){ _this.updateWires(); - //},1200); }); //-- ZOOM constants diff --git a/app/scripts/services/utils.js b/app/scripts/services/utils.js index fb157b94..42e16e00 100644 --- a/app/scripts/services/utils.js +++ b/app/scripts/services/utils.js @@ -1525,10 +1525,15 @@ angular.module('icestudio') this.endBlockingTask = function () { $('body').trigger('Graph::updateWires'); + $(".code-editor.ace_editor").each(function() { + const editor = ace.edit(this); + editor.resize(); + }); + setTimeout(function(){ angular.element('#menu').removeClass('is-disabled'); $('body').removeClass('waiting'); - },750); + },1000); }; this.isFunction = function (functionToCheck) {