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

ItemsRepeater: Fix bug where inserting at front would result in unrendered items #3699

Conversation

marcelwgn
Copy link
Collaborator

@marcelwgn marcelwgn commented Nov 25, 2020

Description

When inserting at index 0, the comparison whether we are in the realization range or not fails since 0>0 == false. I've updated the check to also allow inserting at the start of the realization rect and make it possible to have that item rendered if there is enough space.

Motivation and Context

Fixes #3381

How Has This Been Tested?

Added interaction test, unfortunately, this behavior did not repro in an API test (reliably).

Screenshots (if appropriate):

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Nov 25, 2020
@ranjeshj ranjeshj added area-ItemsRepeater team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Nov 25, 2020
@ranjeshj
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

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

:shipit:

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dannyp32
Copy link

dannyp32 commented Dec 8, 2020

Which WinUI version should we expect this to go into?

@StephenLPeters StephenLPeters merged commit 864c068 into microsoft:master Dec 14, 2020
Kinnara added a commit to Kinnara/ModernWpf that referenced this pull request Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ItemsRepeater team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ItemsRepeater list blank rendering bug
4 participants