-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
jfx21
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
jdk-17.0.13.11
Windows 11
A DESCRIPTION OF THE PROBLEM :
Consider a ListView of size 94.4 with two items of size 47.2 each. Now call ListView.scrollTo(lastIndex). VirtualFlow.adjustPositionToIndex then calculates an absoluteOffset of 47.2, which is wrong. It should be zero. From what I can gather it seems that the check should be "estimatedSize <= viewportLength" and not "estimatedSize < viewportLength".
I also really do not understand the "bug fix" made to scrollToTop. Previously the first check was "index >= getCellCount() - 1" and now it is "index > getCellCount() - 1". Why? That would have also fixed this issue.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a ListView that has a viewport size of 94.4. Add two items with cells each of size 47.2. Now call ListView.scrollTo(last index). It will scroll to the last element even though both the first and second element are already visible.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No scrolling should take place.
ACTUAL -
Scrolled to second element.
CUSTOMER SUBMITTED WORKAROUND :
There is no workaround.
FREQUENCY : always
jdk-17.0.13.11
Windows 11
A DESCRIPTION OF THE PROBLEM :
Consider a ListView of size 94.4 with two items of size 47.2 each. Now call ListView.scrollTo(lastIndex). VirtualFlow.adjustPositionToIndex then calculates an absoluteOffset of 47.2, which is wrong. It should be zero. From what I can gather it seems that the check should be "estimatedSize <= viewportLength" and not "estimatedSize < viewportLength".
I also really do not understand the "bug fix" made to scrollToTop. Previously the first check was "index >= getCellCount() - 1" and now it is "index > getCellCount() - 1". Why? That would have also fixed this issue.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a ListView that has a viewport size of 94.4. Add two items with cells each of size 47.2. Now call ListView.scrollTo(last index). It will scroll to the last element even though both the first and second element are already visible.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No scrolling should take place.
ACTUAL -
Scrolled to second element.
CUSTOMER SUBMITTED WORKAROUND :
There is no workaround.
FREQUENCY : always