Skip to content

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

Open
zachs18 wants to merge 1 commit into
not-fl3:masterfrom
zachs18:fix-534
Open

Do not push cursor down if we are at position 0, even if the widget is too wide.#941
zachs18 wants to merge 1 commit into
not-fl3:masterfrom
zachs18:fix-534

Conversation

@zachs18
Copy link
Copy Markdown

@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