<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt;">
Looks like a bug to me. Created <span style="color: rgb(0, 0, 0);"><a href="https://bugs.openjdk.org/browse/JDK-8365827" data-outlook-id="f3c1e4ba-8532-4cde-8465-83d690c594c2">https://bugs.openjdk.org/browse/JDK-8365827</a></span></div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-andy</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div id="mail-editor-reference-message-container">
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"></div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; font-family: Aptos; font-size: 12pt; color: black;">
<b>From: </b>openjfx-dev <openjfx-dev-retn@openjdk.org> on behalf of Dirk Lemmermann <dlemmermann@gmail.com><br>
<b>Date: </b>Monday, August 18, 2025 at 06:01<br>
<b>To: </b>openjfx-dev <openjfx-dev@openjdk.org><br>
<b>Subject: </b>TabPane / wrapped text<br>
<br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">Hi,</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">I noticed a difference in the way TabPane behaves when trying version 24.0.2 vs 25-ea+28. It seems that TabPaneSkin.computePrefHeight(…) is no longer working as expected. This might be related to
recent changes in the area of content bias and wrapped content. </div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">When you run the following test app you will notice that the window / the tab pane comes up with different heights depending on the version. In 25-ea+28 the window is not high enough and text gets
cut off.</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">(The bug also exists in the 26 EA releases).</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">Regards,</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">Dirk</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div style="background-color: rgb(255, 255, 255);">
<pre><div class="ms-outlook-mobile-reference-message skipProofing" style="font-family: "JetBrains Mono", monospace; font-size: 9.8pt;"><span style="color: rgb(174, 93, 52);">package </span><span style="color: rgb(75, 77, 85);">com.dlsc.gemsfx.demo;<br><br></span><span style="color: rgb(174, 93, 52);">import </span><span style="color: rgb(75, 77, 85);">javafx.geometry.Insets;<br></span><span style="color: rgb(174, 93, 52);">import </span><span style="color: rgb(75, 77, 85);">javafx.scene.Scene;<br></span><span style="color: rgb(174, 93, 52);">import </span><span style="color: rgb(75, 77, 85);">javafx.scene.control.Label;<br></span><span style="color: rgb(174, 93, 52);">import </span><span style="color: rgb(75, 77, 85);">javafx.scene.control.Tab;<br></span><span style="color: rgb(174, 93, 52);">import </span><span style="color: rgb(75, 77, 85);">javafx.scene.control.TabPane;<br></span><span style="color: rgb(174, 93, 52);">import </span><span style="color: rgb(75, 77, 85);">javafx.scene.layout.StackPane;<br></span><span style="color: rgb(174, 93, 52);">import </span><span style="color: rgb(75, 77, 85);">javafx.stage.Stage;<br><br></span><span style="color: rgb(155, 198, 170);"><i>/**<br> * This is a test case to validate whether a TabPane respects the preferred<br> * height of its content.<br> * </i></span><span style="color: rgb(112, 187, 139);"><i>@author </i></span><span style="color: rgb(155, 198, 170);"><i>Dirk Lemmermann<br> */<br></i></span><span style="color: rgb(174, 93, 52);">public class </span><span style="color: rgb(75, 77, 85);">TabPaneBug </span><span style="color: rgb(174, 93, 52);">extends </span><span style="color: rgb(75, 77, 85);">GemApplication {<br><br> </span><span style="color: rgb(187, 181, 83);">@Override<br> </span><span style="color: rgb(174, 93, 52);">public void </span><span style="color: rgb(28, 130, 227);">start</span><span style="color: rgb(75, 77, 85);">(Stage stage) { </span><span style="color: rgb(174, 93, 52);">super</span><span style="color: rgb(75, 77, 85);">.start(stage);<br> Label label = </span><span style="color: rgb(174, 93, 52);">new </span><span style="color: rgb(75, 77, 85);">Label(</span><span style="color: rgb(100, 181, 111);">"Lorem ipsum dolor sit amet consectetur adipiscing elit nunc hendrerit purus, nisi dapibus primis nibh volutpat fringilla ad nisl urna pos-uere!</span><span style="color: rgb(174, 93, 52);">\n</span><span style="color: rgb(100, 181, 111);">Cubilia sagittis egestas pharetra sociis montes nullam netus erat.</span><span style="color: rgb(174, 93, 52);">\n\n</span><span style="color: rgb(100, 181, 111);">Fusce mauris condimentum neque morbi nunc ligula pretium vehicula nulla, platea dictum mus sapien pulvinar eget porta mi praesent, orci hac dignissim suscipit imperdiet sem per a.</span><span style="color: rgb(174, 93, 52);">\n</span><span style="color: rgb(100, 181, 111);">Mauris pellentesque dui vitae velit netus venenatis diam felis urna ultrices, potenti pretium sociosqu eros dictumst dis aenean nibh cursus, leo sagittis integer nullam malesuada aliquet et metus vulputate. Interdum facilisis congue ac proin libero mus ullamcorper mauris leo imperdiet eleifend porta, posuere dignissim erat tincidunt vehicula habitant taciti porttitor scelerisque laoreet neque. Habitant etiam cubilia tempor inceptos ad aptent est et varius, vitae imperdiet phasellus feugiat class purus curabitur ullamcorper maecenas, venenatis mollis fusce cras leo eros metus proin. Fusce aenean sociosqu dis habitant mi sapien inceptos, orci lacinia nisi nascetur convallis at erat sociis, purus integer arcu feugiat sollicitudin libero.</span><span style="color: rgb(174, 93, 52);">\n\n</span><span style="color: rgb(100, 181, 111);">Lorem ipsum dolor sit amet consectetur adipiscing elit nunc hendrerit purus, nisi dapibus primis nibh volutpat fringilla ad nisl urna posuere. Lorem ipsum dolor sit amet consectetur adipiscing elit nunc hendrerit purus, nisi dapibus primis nibh volutpat fringilla ad nisl urna posuere. Lorem ipsum dolor sit amet consectetur adipiscing elit nunc hendrerit purus, nisi dapibus primis nibh volutpat fringilla ad nisl urna posuere. A"</span><span style="color: rgb(75, 77, 85);">);<br> label.setWrapText(</span><span style="color: rgb(174, 93, 52);">true</span><span style="color: rgb(75, 77, 85);">);<br> label.setMaxWidth(</span><span style="color: rgb(97, 255, 255);">500</span><span style="color: rgb(75, 77, 85);">);<br><br> Tab tab1 = </span><span style="color: rgb(174, 93, 52);">new </span><span style="color: rgb(75, 77, 85);">Tab(</span><span style="color: rgb(100, 181, 111);">"Tab 1"</span><span style="color: rgb(75, 77, 85);">, label);<br> TabPane tabPane = </span><span style="color: rgb(174, 93, 52);">new </span><span style="color: rgb(75, 77, 85);">TabPane(tab1);<br><br> StackPane stackPane = </span><span style="color: rgb(174, 93, 52);">new </span><span style="color: rgb(75, 77, 85);">StackPane(tabPane);<br> stackPane.setPadding(</span><span style="color: rgb(174, 93, 52);">new </span><span style="color: rgb(75, 77, 85);">Insets(</span><span style="color: rgb(97, 255, 255);">20</span><span style="color: rgb(75, 77, 85);">));<br><br> stage.setScene(</span><span style="color: rgb(174, 93, 52);">new </span><span style="color: rgb(75, 77, 85);">Scene(stackPane));<br> stage.sizeToScene();<br> stage.centerOnScreen();<br> stage.setTitle(</span><span style="color: rgb(100, 181, 111);">"Tab Pane Bug"</span><span style="color: rgb(75, 77, 85);">);<br> stage.show();<br> }<br><br> </span><span style="color: rgb(174, 93, 52);">public static void </span><span style="color: rgb(28, 130, 227);">main</span><span style="color: rgb(75, 77, 85);">(String[] args) {<br> <i>launch</i>(args);<br> }<br>}</span></div></pre>
</div>
</div>
</body>
</html>