Skip to content

Expandable node is shown at wrong place, sorting broken after expand #1418

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

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

iloveeclipse
Copy link
Member

If items limit is enabled, clicking on expandable element adds all elements before the node, so the sort order is totally wrong and "expandable node" appears "in the middle" of the siblings.

However, "hidden and now expanded" elements (if exists) should always be appended to the end of the shown children.

This is a regression from 5930a51 / #1331.

The problem with the patch above is that it inserts all previously hidden elements at the zero index in the tree, but the tree has already some children, so instead of adding new elements below existing, the patch prepends them.

Since #1331 consists of only two changes (changed tree item creation order on expand and updated javadoc), this is revert the former one.

Fixes #1417

If items limit is enabled, clicking on expandable element adds all
elements **before** the node, so the sort order is totally wrong and
"expandable node" appears "in the middle" of the siblings.

However, "hidden and now expanded" elements (if exists) should always be
appended **to the end** of the shown children.

This is a regression from 5930a51 /
eclipse-platform#1331.

The problem with the patch above is that it inserts all previously
hidden elements at the zero index in the tree, but the tree **has
already some children**, so instead of adding new elements below
existing, the patch prepends them.

Since eclipse-platform#1331
consists of only two changes (changed tree item creation order on expand
and updated javadoc), this is revert the former one.

Fixes eclipse-platform#1417
Copy link
Contributor

Test Results

     900 files  +     547       900 suites  +547   46m 5s ⏱️ + 42m 35s
  7 469 tests +  2 353    7 315 ✔️ +  2 227  153 💤 +125  1 +1 
23 556 runs  +15 000  23 046 ✔️ +14 562  509 💤 +437  1 +1 

For more details on these failures, see this check.

Results for commit bc46972. ± Comparison against base commit ecffe65.

@iloveeclipse iloveeclipse merged commit a1153d0 into eclipse-platform:master Dec 14, 2023
@iloveeclipse iloveeclipse deleted the issue_1417 branch December 14, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expandable node is shown at wrong place, sorting broken after expand
1 participant