Skip to content

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

Merged
emilk merged 2 commits into
emilk:masterfrom
ironpeak:0.28.1.0
Aug 27, 2024
Merged

emilk merged 2 commits into
emilk:masterfrom
ironpeak:0.28.1.0

Conversation

@ironpeak

Copy link
Copy Markdown
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

@emilk emilk left a comment

Copy link
Copy Markdown
Owner

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
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 <emil.ernerfeldt@gmail.com>
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 <emil.ernerfeldt@gmail.com>
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