Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
softcleandev opened this issue Dec 19, 2024 · 0 comments
Open

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

softcleandev opened this issue Dec 19, 2024 · 0 comments

Comments

@softcleandev
Copy link

softcleandev commented Dec 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant