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

Forward overlay() calls in iced_pure::element::Map #1294

Merged
merged 2 commits into from
Mar 29, 2022

Conversation

marienz
Copy link
Contributor

@marienz marienz commented Mar 26, 2022

If Map does not override overlay(), calling map() on a pure Element
breaks any pick_list inside it (its overlay does not appear).

Fix it by implementing overlay() the same way iced_native::element::Map
does.

If Map does not override overlay(), calling map() on a pure Element
breaks any pick_list inside it (its overlay does not appear).

Fix it by implementing overlay() the same way iced_native::element::Map
does.
@marienz
Copy link
Contributor Author

marienz commented Mar 26, 2022

I copied the lifetime changes from iced_native because the code didn't compile without them. I didn't look into whether they could be avoided (which would take me a while, I'm a Rust beginner).

@hecrj hecrj added the improvement An internal improvement label Mar 29, 2022
@hecrj hecrj added this to the 0.4.0 milestone Mar 29, 2022
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.

Good catch! I always forget to implement overlay 😅

I copied the lifetime changes from iced_native because the code didn't compile without them. I didn't look into whether they could be avoided (which would take me a while, I'm a Rust beginner).

Thanks for reminding me of this! I have properly loosened the lifetimes of Message and Renderer in d9d6dff.

I believe we can merge this! 🚢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An internal improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants