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

How to manage text in limited space ? #2

Open
pbouttier opened this issue Oct 10, 2022 · 1 comment
Open

How to manage text in limited space ? #2

pbouttier opened this issue Oct 10, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@pbouttier
Copy link

pbouttier commented Oct 10, 2022

Hi,

This package is a good idea, but how can we manage a text with limited space, with overflow and ellipsis for example ?

I've tried to tweaks your code and force somes max lines, but if the source can show more than the destination, some part of the text is not in the hero animation.

I've done something like this in _calculateBoundForTexts

if (sum > maxWidth) { nbLines++; if(maxLines != null && nbLines == maxLines) break; .... }

Thanks

@sshadkany sshadkany added enhancement New feature or request help wanted Extra attention is needed labels Oct 12, 2022
@sshadkany
Copy link
Owner

Hi , Thank you for using this Package, I will work on this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants