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

Don't clip elements of non-clipping div. #102

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Conversation

floitsch
Copy link
Member

The default Div is non-clipping. However, when children changed we clipped them. This meant that the initial draw would happily draw elements outside the borders, but further updates would not.

The default `Div` is non-clipping. However, when children changed we
clipped them. This meant that the initial draw would happily draw
elements outside the borders, but further updates would not.
@floitsch floitsch requested a review from kasperl December 10, 2024 12:08
Copy link
Contributor

@kasperl kasperl left a comment

Choose a reason for hiding this comment

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

Looks good to me.

src/element.toit Outdated Show resolved Hide resolved
Co-authored-by: Kasper Lund <[email protected]>
@floitsch floitsch merged commit 29cdb5d into main Dec 10, 2024
5 checks passed
@floitsch floitsch deleted the floitsch/dont-clip-div branch December 10, 2024 14:35
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.

2 participants