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

Fix Responsive overlay placement bug #1638

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

tarkah
Copy link
Member

@tarkah tarkah commented Jan 5, 2023

I created this bug with #1563 🙈 . In trying to please the compiler to satisfy borrow constraints, I accidentally shadowed the layout variable passed into the overlay method with the content's layout. This causes the offset to be incorrect and therefore causes any overlay under a Responsive to be positioned incorrectly.

Layout passed into the overlay was accidentally shadowed by the
content's layout. So instead of offsetting by the proper layout, the
content layout was used instead.
@tarkah tarkah changed the title Fix shadowed variable Fix Responsive overlay bug Jan 5, 2023
@tarkah tarkah changed the title Fix Responsive overlay bug Fix Responsive overlay placement bug Jan 5, 2023
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.

Oh, damn... Pesky one!

Thanks!

@hecrj hecrj added this to the 0.7.0 milestone Jan 5, 2023
@hecrj hecrj added bug Something isn't working layout labels Jan 5, 2023
@hecrj hecrj merged commit 2e5eebd into iced-rs:master Jan 5, 2023
@tarkah tarkah deleted the fix/responsive-overlay-layout branch January 5, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working layout
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants