fixed script highlight when editing an input slot

pull/95/head
jmoenig 2020-07-02 11:03:23 +02:00
rodzic d4a7caf0b9
commit 9164d74888
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -7,7 +7,7 @@
<script src="src/morphic.js?version=2020-07-01"></script>
<script src="src/symbols.js?version=2020-07-01"></script>
<script src="src/widgets.js?version=2020-07-01"></script>
<script src="src/blocks.js?version=2020-07-01"></script>
<script src="src/blocks.js?version=2020-07-02"></script>
<script src="src/threads.js?version=2020-07-02"></script>
<script src="src/objects.js?version=2020-07-01"></script>
<script src="src/gui.js?version=2020-07-01"></script>

Wyświetl plik

@ -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,8 +2056,10 @@ SyntaxElementMorph.prototype.fixLayout = function () {
if (this instanceof BlockMorph && this.parent && this.parent.fixLayout) {
this.parent.fixLayout();
this.parent.changed();
if (this.parent instanceof SyntaxElementMorph) {
return;
}
}
this.fixHighlight();
};