adjust bottom of STOP block to reflect the menu selection (show / hide bottom notch)

pull/89/head
jmoenig 2019-02-06 14:21:09 +01:00
rodzic c299d4df60
commit 015bc354c4
2 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -25,6 +25,7 @@
* "loop arrow" symbol for primitive loops, also available for custom blocks
* optimized in-project storage of atomic-data lists (more efficient, less space)
* remove all clones when the Green Flag is clicked
* adjust bottom of STOP block to reflect the menu selection (show / hide bottom notch)
* Notable Fixes:
* "relabel" blocks with translated drop-down choices
* transforming arrayed to linked lists without loosing the last element

Wyświetl plik

@ -4693,8 +4693,12 @@ CommandBlockMorph.prototype.snap = function (hand) {
};
CommandBlockMorph.prototype.isStop = function () {
var choice;
if (this.selector === 'doStopThis') { // this could be cached...
choice = this.inputs()[0].evaluate();
return choice instanceof Array && choice[0].length < 12;
}
return ([
'doStopThis',
'doForever',
'doReport',
'removeClone'
@ -8437,13 +8441,13 @@ InputSlotMorph.prototype.setContents = function (data) {
}
cnts.drawNew();
// remember the constant, if any
this.constant = isConstant ? data : null;
// adjust to zebra coloring:
if (this.isReadOnly && (this.parent instanceof BlockMorph)) {
this.parent.fixLabelColor();
}
// remember the constant, if any
this.constant = isConstant ? data : null;
};
InputSlotMorph.prototype.userSetContents = function (aStringOrFloat) {