<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div dir="auto" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Thanks for filing this bug.</div>
<div dir="auto" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<br>
</div>
<div dir="auto" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>Regards,</div>
<div>Ajit<br>
<div><br>
<blockquote type="cite">
<div>On 13-Jul-2023, at 6:14 AM, John Hendrikx <john.hendrikx@gmail.com> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
I've managed to reproduce it -- it seems it may be a regression, or it is exposing a new bug after a fix done to the scrollbar (in 19.0.2.1 I can't reproduce it, but I also can't fully click the scrollbar back up).  In 21-ea-24 I can reproduce it by scrolling
 all the way down, then trying to "click" it back up not using the scrollbar thumb.</p>
<p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
I created this ticket to track the issue:<span class="Apple-converted-space"> </span><a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8311983" style="color: blue; text-decoration: underline;">https://bugs.openjdk.org/browse/JDK-8311983</a></p>
<p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
--John<br>
</p>
<div class="moz-cite-prefix" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
On 12/07/2023 18:37, Andy Goryachev wrote:<br>
</div>
<blockquote type="cite" cite="mid:DM5PR1001MB2172CC033BD9D075D9E9BAE4E536A@DM5PR1001MB2172.namprd10.prod.outlook.com" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div class="WordSection1" style="page: WordSection1;">
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;">I have a video clip of how to reproduce the exception.  Do you mind creating a bug?<o:p></o:p></span></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;">Thank you<o:p></o:p></span></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;">-andy<o:p></o:p></span></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div id="mail-editor-reference-message-container">
<div>
<div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0in 0in;">
<p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 10pt; font-family: Calibri, sans-serif;">
<b><span style="font-size: 12pt;">From:<span class="Apple-converted-space"> </span></span></b><span style="font-size: 12pt;">John Hendrikx<span class="Apple-converted-space"> </span><a class="moz-txt-link-rfc2396E" href="mailto:john.hendrikx@gmail.com" style="color: blue; text-decoration: underline;"><john.hendrikx@gmail.com></a><br>
<b>Date:<span class="Apple-converted-space"> </span></b>Wednesday, July 12, 2023 at 09:33<br>
<b>To:<span class="Apple-converted-space"> </span></b>Andy Goryachev<span class="Apple-converted-space"> </span><a class="moz-txt-link-rfc2396E" href="mailto:andy.goryachev@oracle.com" style="color: blue; text-decoration: underline;"><andy.goryachev@oracle.com></a>,
 Ajit Ghaisas<span class="Apple-converted-space"> </span><a class="moz-txt-link-rfc2396E" href="mailto:ajit.ghaisas@oracle.com" style="color: blue; text-decoration: underline;"><ajit.ghaisas@oracle.com></a><br>
<b>Cc:<span class="Apple-converted-space"> </span></b><a class="moz-txt-link-abbreviated" href="mailto:openjfx-dev@openjdk.org" style="color: blue; text-decoration: underline;">openjfx-dev@openjdk.org</a><span class="Apple-converted-space"> </span><a class="moz-txt-link-rfc2396E" href="mailto:openjfx-dev@openjdk.org" style="color: blue; text-decoration: underline;"><openjfx-dev@openjdk.org></a><br>
<b>Subject:<span class="Apple-converted-space"> </span></b>Re: [External] : Re: ListView with ImageViews for cells very bugged?<o:p></o:p></span></p>
</div>
<p>I'm unable to get this one myself, but the trace can hopefully point us to the problem.<o:p></o:p></p>
<p>I also find that the behavior of the Horizontal scrollbar leaves a lot to be desired.  Clicking in the empty area should shift it by a full view width, but it only shifts by like 16 pixels orso.<o:p></o:p></p>
<p>So there are some bugs, but at least not quite as severe as I thought.<o:p></o:p></p>
<p>--John<o:p></o:p></p>
<div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;">On 12/07/2023 18:28, Andy Goryachev wrote:<o:p></o:p></span></div>
</div>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;">... and just by randomly clicking on the scrollbar I got this:</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"> </span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">Exception in thread "JavaFX Application Thread"<span class="Apple-converted-space"> </span></span><u><span style="font-size: 12pt;">java.lang.IndexOutOfBoundsException</span></u><span style="font-size: 12pt;">: Index -1 out of
 bounds for length 2</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at java.base/jdk.internal.util.Preconditions.outOfBounds(</span><u><span style="font-size: 12pt;">Preconditions.java:100</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(</span><u><span style="font-size: 12pt;">Preconditions.java:106</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at java.base/jdk.internal.util.Preconditions.checkIndex(</span><u><span style="font-size: 12pt;">Preconditions.java:302</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at java.base/java.util.Objects.checkIndex(</span><u><span style="font-size: 12pt;">Objects.java:359</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at java.base/java.util.ArrayList.get(</span><u><span style="font-size: 12pt;">ArrayList.java:427</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/javafx.scene.control.skin.VirtualFlow.updateCellSize(</span><u><span style="font-size: 12pt;">VirtualFlow.java:3099</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/javafx.scene.control.skin.VirtualFlow.positionCell(</span><u><span style="font-size: 12pt;">VirtualFlow.java:1975</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/javafx.scene.control.skin.VirtualFlow.scrollPixels(</span><u><span style="font-size: 12pt;">VirtualFlow.java:1650</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/javafx.scene.control.skin.VirtualFlow.tryScrollOneCell(</span><u><span style="font-size: 12pt;">VirtualFlow.java:1565</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/javafx.scene.control.skin.VirtualFlow.scrollTo(</span><u><span style="font-size: 12pt;">VirtualFlow.java:1536</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/com.sun.javafx.scene.control.VirtualScrollBar.adjustValue(</span><u><span style="font-size: 12pt;">VirtualScrollBar.java:142</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/com.sun.javafx.scene.control.behavior.ScrollBarBehavior.lambda$20(</span><u><span style="font-size: 12pt;">ScrollBarBehavior.java:162</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/com.sun.javafx.scene.control.behavior.ScrollBarBehavior.trackPress(</span><u><span style="font-size: 12pt;">ScrollBarBehavior.java:173</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/javafx.scene.control.skin.ScrollBarSkin.lambda$7(</span><u><span style="font-size: 12pt;">ScrollBarSkin.java:411</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(</span><u><span style="font-size: 12pt;">CompositeEventHandler.java:86</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(</span><u><span style="font-size: 12pt;">EventHandlerManager.java:232</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(</span><u><span style="font-size: 12pt;">EventHandlerManager.java:189</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(</span><u><span style="font-size: 12pt;">CompositeEventDispatcher.java:59</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(</span><u><span style="font-size: 12pt;">BasicEventDispatcher.java:58</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(</span><u><span style="font-size: 12pt;">EventDispatchChainImpl.java:114</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(</span><u><span style="font-size: 12pt;">BasicEventDispatcher.java:56</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.controls/javafx.scene.control.skin.VirtualFlow.lambda$2(</span><u><span style="font-size: 12pt;">VirtualFlow.java:369</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(</span><u><span style="font-size: 12pt;">EventDispatchChainImpl.java:114</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(</span><u><span style="font-size: 12pt;">BasicEventDispatcher.java:56</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(</span><u><span style="font-size: 12pt;">EventDispatchChainImpl.java:114</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(</span><u><span style="font-size: 12pt;">BasicEventDispatcher.java:56</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(</span><u><span style="font-size: 12pt;">EventDispatchChainImpl.java:114</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(</span><u><span style="font-size: 12pt;">BasicEventDispatcher.java:56</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(</span><u><span style="font-size: 12pt;">EventDispatchChainImpl.java:114</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(</span><u><span style="font-size: 12pt;">BasicEventDispatcher.java:56</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(</span><u><span style="font-size: 12pt;">EventDispatchChainImpl.java:114</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(</span><u><span style="font-size: 12pt;">EventUtil.java:74</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(</span><u><span style="font-size: 12pt;">EventUtil.java:54</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.base/javafx.event.Event.fireEvent(</span><u><span style="font-size: 12pt;">Event.java:198</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/javafx.scene.Scene$MouseHandler.process(</span><u><span style="font-size: 12pt;">Scene.java:3984</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/javafx.scene.Scene.processMouseEvent(</span><u><span style="font-size: 12pt;">Scene.java:1890</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(</span><u><span style="font-size: 12pt;">Scene.java:2708</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(</span><u><span style="font-size: 12pt;">GlassViewEventHandler.java:411</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(</span><u><span style="font-size: 12pt;">GlassViewEventHandler.java:1</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at java.base/java.security.AccessController.doPrivileged(</span><u><span style="font-size: 12pt;">AccessController.java:399</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$2(</span><u><span style="font-size: 12pt;">GlassViewEventHandler.java:450</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(</span><u><span style="font-size: 12pt;">QuantumToolkit.java:424</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(</span><u><span style="font-size: 12pt;">GlassViewEventHandler.java:449</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/com.sun.glass.ui.View.handleMouseEvent(</span><u><span style="font-size: 12pt;">View.java:551</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/com.sun.glass.ui.View.notifyMouse(</span><u><span style="font-size: 12pt;">View.java:937</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif; background-color: white;">
<span style="font-size: 12pt;">      at javafx.graphics/com.sun.glass.ui.mac.MacView.notifyMouse(</span><u><span style="font-size: 12pt;">MacView.java:127</span></u><span style="font-size: 12pt;">)</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"> </span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"> </span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;">-andy</span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"> </span><o:p></o:p></div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"> </span><o:p></o:p></div>
<div id="mail-editor-reference-message-container">
<div>
<div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0in 0in;">
<p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 10pt; font-family: Calibri, sans-serif;">
<b><span style="font-size: 12pt;">From:<span class="Apple-converted-space"> </span></span></b><span style="font-size: 12pt;">John Hendrikx<span class="Apple-converted-space"> </span><a href="mailto:john.hendrikx@gmail.com" moz-do-not-send="true" style="color: blue; text-decoration: underline;"><john.hendrikx@gmail.com></a><br>
<b>Date:<span class="Apple-converted-space"> </span></b>Wednesday, July 12, 2023 at 09:25<br>
<b>To:<span class="Apple-converted-space"> </span></b>Ajit Ghaisas<span class="Apple-converted-space"> </span><a href="mailto:ajit.ghaisas@oracle.com" moz-do-not-send="true" style="color: blue; text-decoration: underline;"><ajit.ghaisas@oracle.com></a><br>
<b>Cc:<span class="Apple-converted-space"> </span></b><a href="mailto:openjfx-dev@openjdk.org" moz-do-not-send="true" class="moz-txt-link-freetext" style="color: blue; text-decoration: underline;">openjfx-dev@openjdk.org</a><span class="Apple-converted-space"> </span><a href="mailto:openjfx-dev@openjdk.org" moz-do-not-send="true" style="color: blue; text-decoration: underline;"><openjfx-dev@openjdk.org></a>,
 Andy Goryachev<span class="Apple-converted-space"> </span><a href="mailto:andy.goryachev@oracle.com" moz-do-not-send="true" style="color: blue; text-decoration: underline;"><andy.goryachev@oracle.com></a><br>
<b>Subject:<span class="Apple-converted-space"> </span></b>[External] : Re: ListView with ImageViews for cells very bugged?</span><o:p></o:p></p>
</div>
<p>Hi Ajit,<o:p></o:p></p>
<p>Thanks for checking, that is indeed a bit of a beginner mistake there... sorry for that.<o:p></o:p></p>
<p>I added the line, and it is much improved (luckily), but I still see issues 2 and 3.<o:p></o:p></p>
<p>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.<o:p></o:p></p>
<p>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.<o:p></o:p></p>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"> </span><o:p></o:p></div>
<div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;">On 12/07/2023 11:26, Ajit Ghaisas wrote:</span><o:p></o:p></div>
</div>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 10.5pt;">Hi John,</span><span style="font-size: 11pt;"></span><o:p></o:p></div>
<div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"> </span><o:p></o:p></div>
</div>
<div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 10.5pt;">   This looks like a user code issue and not a JavaFX bug.</span><o:p></o:p></div>
</div>
<div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 10.5pt;">   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 "<span style="background-color: white;">protected void updateItem(Image image, boolean empty)</span>”</span><o:p></o:p></div>
</div>
<div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 11pt;"> </span><o:p></o:p></div>
</div>
<div>
<div style="margin: 0in; font-size: 10pt; font-family: Calibri, sans-serif;"><span style="font-size: 10.5pt; background-color: white;">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.</span><o:p></o:p></div>
</div>
</blockquote>
<p>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.<o:p></o:p></p>
<p>--John</p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>