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

Ensure that the z-index sort also preserves original add order #7270

Merged
merged 1 commit into from May 18, 2022

Conversation

hartez
Copy link
Contributor

@hartez hartez commented May 17, 2022

Description of Change

For large enough collections of child controls, the z-index sorting extensions for Layouts are not preserving the original Add() order. This can lead to unexpected layout results.

These changes make sure that the original Add() order of the children is retained when sorting by z-index; if the z-indexes are equal, the children remain in the order they were added.

Issues Fixed

Fixes #7122

@jsuarezruiz jsuarezruiz added the area/layout 🔲 label May 18, 2022
@rmarinho rmarinho merged commit efac4b0 into main May 18, 2022
24 checks passed
@rmarinho rmarinho deleted the fix-7122 branch May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/layout 🔲
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants