You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test is displayed partially, and trailing text is displayed completely
Text text text text text text text text text text text text text te
xt text text text text text text text text text text text text text
text text text text text text text text text text text tex... More
What happened instead?
The test is displayed partially, and trailing text is displayed partially
Text text text text text text text text text text text text text te
xt text text text text text text text text text text text text text
text text text text text text text text text text text tex... Mor...
Why did it happen?
Text and trailing text have different attributes, so you need to use NSMutableAttributedString to calculate the height.
@srGritsuk, thank you for making the TvOSMoreButton better by submitting this excellent bug report. 🏅
I was able to reproduce this bug using the Example project and it does seem to be related to the trailing text attributes not being used when calculating the bounding rect.
Would you like to create a PR with the fix? I would love to have more contributors. If not; no worries.
@cgoldsby, thanks for the quick response!
Of course, I would like to become a member of the project and create a PR with fix, and make the project even better in the future.
What did you do
Set the text more than can be reflected
What did you expect to happen?
The test is displayed partially, and trailing text is displayed completely
Text text text text text text text text text text text text text te
xt text text text text text text text text text text text text text
text text text text text text text text text text text tex... More
What happened instead?
The test is displayed partially, and trailing text is displayed partially
Text text text text text text text text text text text text text te
xt text text text text text text text text text text text text text
text text text text text text text text text text text tex... Mor...
Why did it happen?
Text and trailing text have different attributes, so you need to use NSMutableAttributedString to calculate the height.
The text was updated successfully, but these errors were encountered: