mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Fixed else label overflowing in some languages
This commit is contained in:
parent
5132c96eb2
commit
210e9dcf00
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue