On Mon, 6 Mar 2023 20:50:15 GMT, Florian Kirmaier <fkirma...@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

Reply via email to