From 210e9dcf003f717ad44deb1c4b43ccf2a298f863 Mon Sep 17 00:00:00 2001 From: Nathan Dinsmore Date: Mon, 16 Jun 2014 14:51:52 -0400 Subject: [PATCH] Fixed else label overflowing in some languages --- src/blocks/Block.as | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blocks/Block.as b/src/blocks/Block.as index 1986d32..89415a2 100644 --- a/src/blocks/Block.as +++ b/src/blocks/Block.as @@ -395,6 +395,7 @@ public class Block extends Sprite { if ([' ', '', 'o'].indexOf(type) >= 0) x = Math.max(x, minCommandWidth); // minimum width for command blocks if (['c', 'cf', 'e'].indexOf(type) >= 0) x = Math.max(x, minLoopWidth); // minimum width for C and E blocks if (['h'].indexOf(type) >= 0) x = Math.max(x, minHatWidth); // minimum width for hat blocks + if (elseLabel) x = Math.max(x, indentLeft + elseLabel.width + 2); base.setWidthAndTopHeight(x + indentRight, indentTop + maxH + indentBottom); if ((type == "c") || (type == "e")) fixStackLayout();