RFR: 8258663: Fixed size TableCells are not removed from sene graph when column is removed [v2]

Marius Hanl github.com+66004280+maran23 at openjdk.java.net
Tue Mar 30 15:54:37 UTC 2021


> This PR fixes an issue, where table cells are not removed from the table row when the corresponding table column got removed. This will lead to empty "ghost" cells laying around in the table.
> This bug only occurs, when a fixed cell size is set to the table.
> 
> I also added 3 more tests beside the mandatory test, which tests my fix.
> 1 alternative test, which tests the same with no fixed cell size set.
> The other 2 tests are testing the same, but the table columns are set invisible instead.
> 
> -> Either the removal or setVisible(false) of a column should both do the same: Remove the corresponding cells, so that there are no empty cells.
> Therefore, the additional tests make sure, that the other use cases (still) works and won't break in future (at least, without red tests ;)).
> See also: TableRowSkinBase#updateCells(boolean)

Marius Hanl has updated the pull request incrementally with one additional commit since the last revision:

  8258663: Using VirtualFlowTestUtils in tests now instead of own solution -> cleaner code

-------------

Changes:
  - all: https://git.openjdk.java.net/jfx/pull/444/files
  - new: https://git.openjdk.java.net/jfx/pull/444/files/acc19ee4..a2a331a2

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jfx&pr=444&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jfx&pr=444&range=00-01

  Stats: 55 lines in 1 file changed: 4 ins; 37 del; 14 mod
  Patch: https://git.openjdk.java.net/jfx/pull/444.diff
  Fetch: git fetch https://git.openjdk.java.net/jfx pull/444/head:pull/444

PR: https://git.openjdk.java.net/jfx/pull/444


More information about the openjfx-dev mailing list