RFR: 8277785: ListView scrollTo jumps to wrong location when CellHeight is changed
Florian Kirmaier
fkirmaier at openjdk.java.net
Thu Jan 13 09:52:31 UTC 2022
On Sun, 9 Jan 2022 15:20:36 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.
I've added a new button to the test programm. The 5th button now literally jumps into the "Nothingness"
<img width="302" alt="Screenshot 2022-01-13 at 10 48 52" src="https://user-images.githubusercontent.com/6547435/149306510-3b6348d2-6f3a-442c-bd01-80a57dbb0245.png">
.
-------------
PR: https://git.openjdk.java.net/jfx/pull/712
More information about the openjfx-dev
mailing list