<div dir="ltr">Hi Andy<div><br></div><div>Maybe a fix (quick?) could be a option to always show the scrollbar? I have used that option before in HTML/CSS: <a href="https://www.w3schools.com/howto/howto_css_force_scrollbars.asp">https://www.w3schools.com/howto/howto_css_force_scrollbars.asp</a></div><div><br></div><div>Kind Regards</div><div>Mads</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tirs. 26. mar. 2024 kl. 16.31 skrev Andy Goryachev <<a href="mailto:andy.goryachev@oracle.com">andy.goryachev@oracle.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-4188456471266982463">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-4188456471266982463WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">Hi there.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">Thank you for bringing this up in the mailing list (we **<b>do not</b>** monitor stackoverflow).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">Do I understand it correctly from this stackoverflow posting that the problem is a momentary adjustment of the columns when the vertical scroll bar appears?  And that it works
 correctly otherwise?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">If that's the case, yes - this is the expected behavior, at least given the current design of the TableView skin.  If one adds a change listener to, let's say, the last column,
 one will see three updates:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="m_-4188456471266982463MsoListParagraph" style="margin-left:0in"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">in TableColumnHeader.doColumnAutoSize() as a response to setting the scene<u></u><u></u></span></li><li class="m_-4188456471266982463MsoListParagraph" style="margin-left:0in"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">TableColumnHeader.resizeColumnToFitContent(), called by TableViewSkinBase.updateContentWidth() as a response to Scene.doLayoutPass()<u></u><u></u></span></li><li class="m_-4188456471266982463MsoListParagraph" style="margin-left:0in"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">TableView.setContentWidth() as a response to VirtualFlow.computeBarVisibility() when it decides the vertical scroll
 bar needs to be shown.<u></u><u></u></span></li></ol>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">What I can't tell is whether steps 2 and 2 can be combined - in other words, whether it is possible to know that the vertical scroll bar needs to be shown before the layout
 pass is done.  I am sure it can be in the case of the fixed row height, but if the row heights depend on the content width the things might get complicated.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">If it can, we can try to investigate, though it will be a low priority enhancement (the table does work correctly save for a momentary flicker).  I am going to create a JBS
 ticket <a href="https://bugs.openjdk.org/browse/JDK-8329104" target="_blank">https://bugs.openjdk.org/browse/JDK-8329104</a> to investigate.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16"">-andy<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Iosevka Fixed SS16""><u></u> <u></u></span></p>
<div id="m_-4188456471266982463mail-editor-reference-message-container">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">openjfx-dev <<a href="mailto:openjfx-dev-retn@openjdk.org" target="_blank">openjfx-dev-retn@openjdk.org</a>> on behalf of Mads <<a href="mailto:mailtiltssalg@gmail.com" target="_blank">mailtiltssalg@gmail.com</a>><br>
<b>Date: </b>Tuesday, March 26, 2024 at 05:58<br>
<b>To: </b><a href="mailto:openjfx-dev@openjdk.org" target="_blank">openjfx-dev@openjdk.org</a> <<a href="mailto:openjfx-dev@openjdk.org" target="_blank">openjfx-dev@openjdk.org</a>><br>
<b>Subject: </b>JavaFX TableView text in the cells of the columns seems to jump<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Please see this Stack Overflow post where I have tried my best to document what is going on:<br>
<br>
<a href="https://stackoverflow.com/questions/77369768/javafx-tableview-text-in-the-cells-of-the-columns-seems-to-jump" target="_blank">https://stackoverflow.com/questions/77369768/javafx-tableview-text-in-the-cells-of-the-columns-seems-to-jump</a><br>
<br>
Seems to be an issue with CONSTRAINED_RESIZE_POLICY_ALL_COLUMNS when drawing the table for the first time and when vertical scrollbar is added?<br>
<br>
Is this how it is intended to be?<br>
<br>
Regards<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>

</div></blockquote></div>