diff --git a/HISTORY.md b/HISTORY.md index 615bbe16..b49a2734 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/src/blocks.js b/src/blocks.js index 4d3290ed..5b155402 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -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) {