Skip to content

Expand button is displayed even though the text is very short #11

Description

@softcleandev

Here my expanable text:

ExpandableText(text: "Live long and prosper!")

Shouldn't the expand/collapse buttons be hidden for a single-line string?

image
image

In line 139

I added a print call:

print("size: \(geo.size.width)x\(geo.size.height)")

and the output is:

size: 0.0x656.6666666666666

It's very strange, that the width is zero.
And because of it, is the height larger than normal and that is the cause, why truncated is set to true.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions