We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb1da99 commit 7b586a3Copy full SHA for 7b586a3
1 file changed
blocks_vertical/procedures.js
@@ -165,7 +165,7 @@ Blockly.ScratchBlocks.ProcedureUtils.updateDisplay_ = function() {
165
var wasRendered = this.rendered;
166
167
if (this.procCode_ === "") this.procCode_ = "unnamed block";
168
- // @todo add statement check?
+
169
var ConectionType = (this.outputType || (this.output_ ? 'string' : 'statement')).toLowerCase();
170
this.rendered = false;
171
@@ -217,6 +217,9 @@ Blockly.ScratchBlocks.ProcedureUtils.updateDisplay_ = function() {
217
218
this.rendered = wasRendered;
219
if (wasRendered && !this.isInsertionMarker()) {
220
+ if (this.type === "procedures_declaration") {
221
+ for (var child of this.childBlocks_) child.updateColour();
222
+ }
223
this.initSvg();
224
this.render();
225
}
0 commit comments