Merge pull request #168 from nathan/terminals-in-substacks

Fixed spacing in C blocks whose substacks end with terminals
This commit is contained in:
Shane M. Clements 2014-06-03 10:07:31 -06:00
commit f3dd8f4165

View file

@ -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();