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

text_editor: Avoid rendering text outside the border #2536

Merged
merged 5 commits into from
Aug 12, 2024

Conversation

meithecatte
Copy link
Contributor

If the height could fit slightly less than an extra line, said line would protrude beyond the border of the text editor. This PR fixes this.

If the height could fit slightly less than an extra line, said line
would protrude beyond the border of the text editor.
@meithecatte
Copy link
Contributor Author

To make it clearer what this PR achieves:

Before:

image

After:

image

@hecrj hecrj added this to the 0.13 milestone Aug 12, 2024
@hecrj hecrj added bug Something isn't working text widget fix rendering labels Aug 12, 2024
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Made some changes to account for the padding of the text_editor.

@hecrj hecrj enabled auto-merge August 12, 2024 00:58
@hecrj hecrj merged commit 6d6f354 into iced-rs:master Aug 12, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants