RFR: 8277785: ListView scrollTo jumps to wrong location when CellHeight is changed [v3]
Kevin Rushforth
kcr at openjdk.java.net
Fri Mar 25 16:30:05 UTC 2022
On Thu, 24 Mar 2022 10:06:34 GMT, Johan Vos <jvos at openjdk.org> wrote:
>> When the size of a ListCell is changed and a scrollTo method is invoked without having a layout calculation in between, the old (wrong) size is used to calculcate the total estimate. This happens e.g. when the size is changed in the `updateItem` method.
>> This PR will immediately resize the cell and sets the new value in the cache containing the cellsizes.
>
> Johan Vos has updated the pull request incrementally with one additional commit since the last revision:
>
> Add test to check if there are no empty cells at the end of a List in case there are enough leading cells available.
It looks like there are some failing unit tests now.
-------------
PR: https://git.openjdk.java.net/jfx/pull/712
More information about the openjfx-dev
mailing list