fixed block label color when expanding or inserting variadic infix slots

snap8
Jens Mönig 2022-05-23 15:22:25 +02:00
rodzic 86182be664
commit 225e837aaa
3 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -41,6 +41,7 @@
* fixed an edge case for slot type inferral
* fixed variadic AND/OR reporters library, thanks, Brian!
* fixed a pen-size issue in the frequency distribution analysis' graph-plot block, thanks, Brian!
* fixed block label color when expanding or inserting variadic infix slots
* **Documentation Updates:**
* updated contribution guidelines, thanks, Peter!
* updated help screens for NUMBERS and FIND FIRST, thanks, Brian, Peter and WarpedWartWars!
@ -48,6 +49,9 @@
* **Translation Updates:**
* German
### 2022-05-23
* blocks: fixed block label color when expanding or inserting variadic infix slots
### 2022-05-20
* byob, objects, threads: update sprite-local custom blocks in data

Wyświetl plik

@ -16,7 +16,7 @@
<script src="src/morphic.js?version=2022-04-26"></script>
<script src="src/symbols.js?version=2021-03-03"></script>
<script src="src/widgets.js?version=2021-17-09"></script>
<script src="src/blocks.js?version=2022-05-19"></script>
<script src="src/blocks.js?version=2022-05-23"></script>
<script src="src/threads.js?version=2022-05-20"></script>
<script src="src/objects.js?version=2022-05-20"></script>
<script src="src/scenes.js?version=2022-03-03"></script>

Wyświetl plik

@ -161,7 +161,7 @@ CostumeIconMorph, SoundIconMorph, SVG_Costume, embedMetadataPNG*/
// Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2022-May-19';
modules.blocks = '2022-May-23';
var SyntaxElementMorph;
var BlockMorph;
@ -12817,6 +12817,9 @@ MultiArgMorph.prototype.insertNewInputBefore = function (anInput, contents) {
this.children.splice(idx, 0, newPart);
}
newPart.fixLayout();
if (this.parent instanceof BlockMorph) {
this.parent.fixLabelColor();
}
this.fixLayout();
return newPart;
};
@ -12862,6 +12865,9 @@ MultiArgMorph.prototype.addInput = function (contents) {
newPart.parent = this;
this.children.splice(idx, 0, newPart);
newPart.fixLayout();
if (this.parent instanceof BlockMorph) {
this.parent.fixLabelColor();
}
this.fixLayout();
return newPart;
};