Skip to content

Commit

Permalink
Fix render properly code areas in load
Browse files Browse the repository at this point in the history
  • Loading branch information
cavearr committed Nov 10, 2024
1 parent 4b7f31d commit d8b0cd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions app/scripts/services/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion app/scripts/services/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8b0cd3

Please sign in to comment.