Skip to content

Label: text doesn't fit #1780

Open
Open
@CrazyFlasher

Description

@CrazyFlasher

Using TextFieldTextRenderer
Parent container uses AnchorLayout

Label properties:

label.wordWrap = true;
label.maxWidth = 300;
label.padding = 20;
label.paddingRight = 40;

var layoutData:AnchorLayoutData = new AnchorLayoutData();
layoutData:AnchorLayoutData.left = 0;

label.layoutData = layoutData:AnchorLayoutData ;
label.fontStyles = fonts.futuraPTMedium_0_32_left;

If I use text with line break, second line is not shown

Text:
Hello, Vitenka3533!\nI will guide you for the first time.

Screen:
image

Screen without line break - \n:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions