Hi Ajit,
Thanks for checking, that is indeed a bit of a beginner mistake there...
sorry for that.
I added the line, and it is much improved (luckily), but I still see
issues 2 and 3.
I can narrow down 2 a bit. When there is only space to show a single
row (or less than a single line), the scrollbar won't respond to clicks
in the empty area. When at least a full row is visible, then it starts
working normally.
I wonder if it might be possible to warn if that line is missing
somehow, or provide a different method to override that doesn't require
calling super.
On 12/07/2023 11:26, Ajit Ghaisas wrote:
Hi John,
This looks like a user code issue and not a JavaFX bug.
Most of the vertical scrollbar issues that you have mentioned get
fixed by adding a call to "super.updateItem(image, empty);" as a first
call in the cell factory method "protected void updateItem(Image
image, boolean empty)”
I am seeing an exception when I scroll fully down and then scroll up
by clicking empty area on the vertical scrollbar. This looks like a
separate issue though.
I didn't see any exceptions, just that the scrollbar is unresponsive
when clicking in the empty area when less than a full row is visible.
--John