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

Avoid some Id clashes by seeding auto-ids with child id #4840

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

ironpeak
Copy link
Contributor

I was having trouble with id collisions and was not able to resolve it using push_id and child_ui_with_id_source.

When investigating the issue I found #2262 which matched the issues I had so I forked egui and implemented the changes from that PR for the latest version.

It solved the issue for me.

I did not notice any regressions in my project or the egui web viewer.

@ironpeak ironpeak marked this pull request as draft July 17, 2024 17:16
@ironpeak ironpeak marked this pull request as ready for review July 17, 2024 17:46
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Let's try it!

@emilk emilk added the egui label Aug 26, 2024
@emilk emilk changed the title Auto-ids are seeded based on Ui::id Avoid some Id clashes by seeding auto-ids with child id Aug 26, 2024
@emilk emilk merged commit 0f8614d into emilk:master Aug 27, 2024
20 of 21 checks passed
486c pushed a commit to 486c/egui that referenced this pull request Oct 9, 2024
I was having trouble with id collisions and was not able to resolve it
using `push_id` and `child_ui_with_id_source`.

When investigating the issue I found
emilk#2262 which matched the issues I had
so I forked egui and implemented the changes from that PR for the latest
version.

It solved the issue for me.

I did not notice any regressions in my project or the egui web viewer.

Co-authored-by: Emil Ernerfeldt <[email protected]>
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
I was having trouble with id collisions and was not able to resolve it
using `push_id` and `child_ui_with_id_source`.

When investigating the issue I found
emilk#2262 which matched the issues I had
so I forked egui and implemented the changes from that PR for the latest
version.

It solved the issue for me.

I did not notice any regressions in my project or the egui web viewer.

Co-authored-by: Emil Ernerfeldt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants