mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Merge pull request #168 from nathan/terminals-in-substacks
Fixed spacing in C blocks whose substacks end with terminals
This commit is contained in:
commit
f3dd8f4165
1 changed files with 2 additions and 0 deletions
|
@ -422,6 +422,7 @@ public class Block extends Sprite {
|
|||
b.subStack1.x = BlockShape.SubstackInset;
|
||||
b.subStack1.y = b.base.substack1y();
|
||||
substackH = b.subStack1.getRect(b).height;
|
||||
if (b.subStack1.bottomBlock().isTerminal) substackH += BlockShape.NotchDepth;
|
||||
}
|
||||
b.base.setSubstack1Height(substackH);
|
||||
substackH = BlockShape.EmptySubstackH;
|
||||
|
@ -430,6 +431,7 @@ public class Block extends Sprite {
|
|||
b.subStack2.x = BlockShape.SubstackInset;
|
||||
b.subStack2.y = b.base.substack2y();
|
||||
substackH = b.subStack2.getRect(b).height;
|
||||
if (b.subStack2.bottomBlock().isTerminal) substackH += BlockShape.NotchDepth;
|
||||
}
|
||||
b.base.setSubstack2Height(substackH);
|
||||
b.base.redraw();
|
||||
|
|
Loading…
Reference in a new issue