Skip to content

ASTextLayout truncated line fix when add headIndent or firstLineHeadIndent in NSParagraphStyle #2041

@kanottonp

Description

@kanottonp

Hi Texture Team,

There is an issue about when I insert headIndent or firstLineHeadIndent into NSParagraphStyle and add to NSAttributedString in both ASTextNode or ASTextNode2

  • Examples test cases for showing truncated line with wrong layout (Truncation Message overflows the box) 1d012ab

image

So I found a solution for fixing and add test cases for this case too.

  • Fixing and Add Screenshot Test 9ca2aa2

Hope this helps!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions