From 9164d74888499f4925bd880944b966c9c38fcb18 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 2 Jul 2020 11:03:23 +0200 Subject: [PATCH] fixed script highlight when editing an input slot --- snap.html | 2 +- src/blocks.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/snap.html b/snap.html index dad4c40f..3c0cb1cd 100755 --- a/snap.html +++ b/snap.html @@ -7,7 +7,7 @@ - + diff --git a/src/blocks.js b/src/blocks.js index 43b711b8..5c8c2d0b 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2020-June-24'; +modules.blocks = '2020-July-02'; var SyntaxElementMorph; var BlockMorph; @@ -2056,7 +2056,9 @@ SyntaxElementMorph.prototype.fixLayout = function () { if (this instanceof BlockMorph && this.parent && this.parent.fixLayout) { this.parent.fixLayout(); this.parent.changed(); - return; + if (this.parent instanceof SyntaxElementMorph) { + return; + } } this.fixHighlight();