RFR: 8303680 Virtual Flow freezes after calling scrollTo and scrollPixels in succession
Andy Goryachev
angorya at openjdk.org
Mon Mar 6 20:57:18 UTC 2023
On Mon, 6 Mar 2023 20:50:15 GMT, Florian Kirmaier <fkirmaier at openjdk.org> wrote:
>> modules/javafx.controls/src/test/java/test/javafx/scene/control/ListViewTest.java line 2540:
>>
>>> 2538: // scroll to 50 and scroll 1 pixel
>>> 2539: vf.scrollTo(50);
>>> 2540: vf.scrollPixels(1);
>>
>> this is a rather artificial test.
>> is it possible to reproduce the condition using control's public APIs?
>
> This is the public API of VirtualFlow. I don't know whether it's possible with the API of the Control - But the API of the VirtualFlow should be stable too, right?
You are right, it is public API. One can't get directly to it, but it is possible to subclass the ListView and use the protected `getVirtualFlow()` method.
-------------
PR: https://git.openjdk.org/jfx/pull/1052
More information about the openjfx-dev
mailing list