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 🔲 StackLayout, GridLayout, ScrollView, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 18, 2022
@rmarinho rmarinho merged commit efac4b0 into main May 18, 2022
@rmarinho rmarinho deleted the fix-7122 branch May 18, 2022 11:16
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/layout 🔲 StackLayout, GridLayout, ScrollView, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong rendering of Grid cell content
3 participants