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

Allow truncation mode (head/tail/middle) for attribute string #1287

Conversation

ernestmama
Copy link
Contributor

Truncation mode (Head/Tail/Middle) override has not been applied when preparing for attributed string. It was default to WordWrapping. Those truncation mode is currently rendering correctly. This change is to let the override happens for all lineBreakMode.

@ernestmama
Copy link
Contributor Author

This is the commit which added support for the truncation: #1150

@ernestmama
Copy link
Contributor Author

@wiseoldduck What do you think? It seems like your previous commit fix the truncation problem. Is it safe to remove the switch?

@wiseoldduck
Copy link
Member

I do not believe it is. The ASTextLayout class uses the "inner" mode to break up the lines, and then applies the "real" mode to the final line.

@nguyenhuy
Copy link
Member

From @wiseoldduck's comment, it seems like we should close this issue. Feel free to reopen it. Thanks all.

@nguyenhuy nguyenhuy closed this Jul 17, 2019
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

Successfully merging this pull request may close these issues.

None yet

3 participants