kopia lustrzana https://github.com/backface/turtlestitch
tweaked blocks layout for hidden expansion slots
rodzic
a6e55169af
commit
c9b3d5f493
|
@ -46,6 +46,7 @@
|
|||
### 2021-10-22
|
||||
* blocks, objects: only show the "message" upvar in the "When I receive" hat if "any message" is selected
|
||||
* blocks: only show "key" upvar in the "When ... is pressed" hat if "any key" is selected
|
||||
* blocks: tweaked blocks layout for hidden expansion slots
|
||||
|
||||
### 2021-10-21
|
||||
* threads, objects: make "when I receive 'any message'" hat scripts threadsafe (uninterruptable by other messages)
|
||||
|
|
|
@ -1840,6 +1840,7 @@ SyntaxElementMorph.prototype.fixLayout = function () {
|
|||
ico = this instanceof BlockMorph && this.hasLocationPin() ?
|
||||
this.methodIconExtent().x + space : 0,
|
||||
bottomCorrection,
|
||||
rightMost,
|
||||
hasLoopCSlot = false,
|
||||
hasLoopArrow = false;
|
||||
|
||||
|
@ -2023,8 +2024,9 @@ SyntaxElementMorph.prototype.fixLayout = function () {
|
|||
maxX - this.left() + this.labelPadding - this.edge
|
||||
);
|
||||
// adjust right padding if rightmost input has arrows
|
||||
if (parts[parts.length - 1] instanceof MultiArgMorph
|
||||
&& (lines.length === 1)) {
|
||||
rightMost = parts[parts.length - 1];
|
||||
if (rightMost instanceof MultiArgMorph && rightMost.isVisible &&
|
||||
(lines.length === 1)) {
|
||||
blockWidth -= space;
|
||||
}
|
||||
// adjust width to hat width
|
||||
|
|
Ładowanie…
Reference in New Issue