jfx icon indicating copy to clipboard operation
jfx copied to clipboard

8291908: VirtualFlow creates unneeded empty cells

Open johanvos opened this issue 3 years ago • 4 comments

When calculating the viewportOffset, we now already take into account that cells will have to shift.

This prevents the creation of temporary empty cells in the layout phase. One test needed to be fixed, since the number of invocations to updateItem() was hardcoded (and it is decreased by this commit).


Progress

  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue
  • [ ] Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8291908: VirtualFlow creates unneeded empty cells

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx pull/863/head:pull/863
$ git checkout pull/863

Update a local copy of the PR:
$ git checkout pull/863
$ git pull https://git.openjdk.org/jfx pull/863/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 863

View PR using the GUI difftool:
$ git pr show -t 863

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/863.diff

johanvos avatar Aug 04 '22 14:08 johanvos

:wave: Welcome back jvos! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

bridgekeeper[bot] avatar Aug 04 '22 14:08 bridgekeeper[bot]

Webrevs

mlbridge[bot] avatar Aug 04 '22 14:08 mlbridge[bot]

/reviewers 2

kevinrushforth avatar Aug 04 '22 20:08 kevinrushforth

@kevinrushforth The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

openjdk[bot] avatar Aug 04 '22 20:08 openjdk[bot]

@johanvos As noted in JBS, this PR also fixes JDK-8291467. Can you add that issue to this PR? Alternatively, you could change JDK-8291908 to a bug and close JDK-8291467 as a duplicate.

kevinrushforth avatar Aug 11 '22 23:08 kevinrushforth

@johanvos This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8291908: VirtualFlow creates unneeded empty cells

Reviewed-by: kcr, aghaisas

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 12 new commits pushed to the master branch:

  • 33534cb9e0524e91ed717b22fab667b284c52252: 8291630: Update attribution in webkit.md file
  • 38324a70c3054e75cb22865e7ffcc5375b62939d: 8291087: Wrong position of focus of screen reader on Windows with screen scale > 1
  • b4d86bdffc2dd89e3473884b4079092e7e2843d1: 8218826: TableRowSkinBase: horizontal layout broken if row has padding
  • 4c1f4c20b99dfc8c8016c305983dfea5e1b9d6f2: Merge
  • dd30402a5c22daf79b88dd35b42f32d0a0e28867: 8291589: Update copyright header for files modified in 2022
  • 779365f1af8dc837d7b6d292de5bd8dcd8947290: Merge
  • 5febacae1bf6776a31e151ef223739576dab67e6: 8291502: Mouse or touch presses on a non-focusable region don't clear the focusVisible flag of the current focus owner
  • 8fa89199e2d07763a3aaab3f3a7904c73457d4a0: 8291588: Update boot JDK to 18.0.2
  • 08ec9c8781a57b49a13a2b7febbe33172ebc1a5a: 8289605: Robot capture tests fail intermittently on Mac M1
  • 4b4deaef96ac9efcb2f0cb57891ef617234bee8a: 8289397: Fix warnings: Possible accidental assignment in place of a comparison. A condition expression should not be reduced to an assignment
  • ... and 2 more: https://git.openjdk.org/jfx/compare/7e48413eb0f9eb3dcbd9d3a1572fc311036092c8...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

openjdk[bot] avatar Aug 16 '22 10:08 openjdk[bot]

/integrate

johanvos avatar Aug 16 '22 12:08 johanvos

Going to push as commit eaddb0fbeeb99900636f9704758f6c004860ff9a. Since your change was applied there have been 12 commits pushed to the master branch:

  • 33534cb9e0524e91ed717b22fab667b284c52252: 8291630: Update attribution in webkit.md file
  • 38324a70c3054e75cb22865e7ffcc5375b62939d: 8291087: Wrong position of focus of screen reader on Windows with screen scale > 1
  • b4d86bdffc2dd89e3473884b4079092e7e2843d1: 8218826: TableRowSkinBase: horizontal layout broken if row has padding
  • 4c1f4c20b99dfc8c8016c305983dfea5e1b9d6f2: Merge
  • dd30402a5c22daf79b88dd35b42f32d0a0e28867: 8291589: Update copyright header for files modified in 2022
  • 779365f1af8dc837d7b6d292de5bd8dcd8947290: Merge
  • 5febacae1bf6776a31e151ef223739576dab67e6: 8291502: Mouse or touch presses on a non-focusable region don't clear the focusVisible flag of the current focus owner
  • 8fa89199e2d07763a3aaab3f3a7904c73457d4a0: 8291588: Update boot JDK to 18.0.2
  • 08ec9c8781a57b49a13a2b7febbe33172ebc1a5a: 8289605: Robot capture tests fail intermittently on Mac M1
  • 4b4deaef96ac9efcb2f0cb57891ef617234bee8a: 8289397: Fix warnings: Possible accidental assignment in place of a comparison. A condition expression should not be reduced to an assignment
  • ... and 2 more: https://git.openjdk.org/jfx/compare/7e48413eb0f9eb3dcbd9d3a1572fc311036092c8...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Aug 16 '22 12:08 openjdk[bot]

@johanvos Pushed as commit eaddb0fbeeb99900636f9704758f6c004860ff9a.

:bulb: You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

openjdk[bot] avatar Aug 16 '22 12:08 openjdk[bot]