mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 13:11:12 -05:00
Merge pull request #268 from nathan/else-overflow
Fixed else label overflowing in some languages
This commit is contained in:
commit
6001b87fe2
1 changed files with 1 additions and 0 deletions
|
@ -453,6 +453,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();
|
||||
|
|
Loading…
Reference in a new issue