Skip to content

Do not push cursor down if we are at position 0, even if the widget is too wide. #941

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zachs18
Copy link

@zachs18 zachs18 commented Apr 6, 2025

Fixes #534

In Cursor::fit, do not push the cursor down to the next line due to width overflow if the cursor is currently at the left edge.

Not sure how this should handle margins, should it be like self.x < self.margin + 1.0? The existing self.x + size.x < self.area.w - self.margin * 2. seems like self.x is the position after the margin, so I'm not sure.

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.

Regression in 0.3.14: UI layouts incorrectly when parent is smaller than child
1 participant