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

Long text creates margin at the bottom of the text #6

Open
jobpaardekooper opened this issue Apr 5, 2024 · 2 comments
Open

Long text creates margin at the bottom of the text #6

jobpaardekooper opened this issue Apr 5, 2024 · 2 comments

Comments

@jobpaardekooper
Copy link
Contributor

When you have a large amount of text inside the component you will eventually get some margin at the bottom of the text view. The longer you make the text the more margin will be there. The margin seems to get added in increments of the line height as you make the text longer.

If you take 30 paragraphs of Lorem Ipsum you will see one extra line:
Screenshot 2024-04-05 at 11 06 43
The red background is set on the UITextView.

If you add another 30 paragraphs you will get another extra empty line:
Screenshot 2024-04-05 at 11 07 45

My guess is that it would have to do with some small error in the view height calculation that adds up over time as the size of the text grows. But I have not looked at the code much so I don't know exactly.

@haileyok
Copy link
Collaborator

haileyok commented Apr 5, 2024

Nice find. Are you adding any styles outside of the background color here to the text? Will take a look sometime this weekend.

@jobpaardekooper
Copy link
Contributor Author

No styles at all originally. I found it because the container it was in had some random extra space at the bottom. The red background was just to clearly demonstrate the extra space.

Thanks for taking a look!

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

2 participants