Skip to content

Repair ListView container indices on item insert - #4166

Merged
mergify[bot] merged 4 commits into
unoplatform:masterfrom
MartinZikmund:dev/mazi/fix-listview-container-indices
Sep 30, 2020
Merged

mergify[bot] merged 4 commits into
unoplatform:masterfrom
MartinZikmund:dev/mazi/fix-listview-container-indices

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Sep 28, 2020 •

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): fixes #4165

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Not working.

What is the new behavior?

Working (at least for my TreeView scenario 😂)

PR Checklist

Please check if your PR fulfills the following requirements:

@MartinZikmund
MartinZikmund requested a review from a team September 28, 2020 13:59
@gitpod-io

gitpod-io Bot commented Sep 28, 2020 •

Copy link
Copy Markdown

@MartinZikmund MartinZikmund changed the title Dev/mazi/fix listview container indices Repair container indices on item insert Sep 28, 2020
@MartinZikmund MartinZikmund changed the title Repair container indices on item insert Repair ListView container indices on item insert Sep 28, 2020
@MartinZikmund MartinZikmund self-assigned this Sep 28, 2020

@LHuss LHuss left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I suspect that the root of the issue lies somewhere around here, where it looks like item indices are being overwritten with new template IDs without actually pushing back the existing ones.

@MartinZikmund

Copy link
Copy Markdown
Member Author

@LHuss Checked with @davidjohnoliver, changing the property on the linked location would solve the problem for Skia, WASM, but would not apply to other platforms, so I will keep this solution for now 👍

@MartinZikmund MartinZikmund added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Sep 30, 2020
@mergify
mergify Bot merged commit ef5961f into unoplatform:master Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ListView does not properly update container indices when items are inserted/removed

3 participants