Skip to content

Conversation

@lucasmerlin
Copy link
Collaborator

That pr introduced a bug that caused a mismatch in the by_layer / by_id widget rects. This should fix it by updating the index of all following widgets. Not super pretty and efficient, but I'm not sure if there's a better way.

Maybe we could also just leave a "tombstone" / duplicate there in the by_layer map so we don't need to update the indexes?

@github-actions
Copy link

github-actions bot commented Jan 2, 2026

Preview available at https://egui-pr-preview.github.io/pr/7825-lucasfix-move-top-index
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@lucasmerlin lucasmerlin added bug Something is broken egui labels Jan 2, 2026
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.

Oh yeah - good catch

@emilk emilk merged commit db76c5c into main Jan 5, 2026
47 checks passed
@emilk emilk deleted the lucas/fix-move-top-index branch January 5, 2026 07:22
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.

If a collapsing header is the first child of a window UI, it's not interactable

3 participants