<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;">Hi,<div><br></div><div>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><br></div><div>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><br></div><div>(The bug also exists in the 26 EA releases).</div><div><br></div><div>Regards,</div><div><br></div><div>Dirk</div><div><br></div><div><div style="background-color: rgb(255, 255, 255); color: rgb(75, 77, 85);"><pre style="font-family: "JetBrains Mono", monospace; font-size: 9.8pt;"><span style="color: rgb(174, 93, 52);">package </span>com.dlsc.gemsfx.demo;<br><br><span style="color: rgb(174, 93, 52);">import </span>javafx.geometry.Insets;<br><span style="color: rgb(174, 93, 52);">import </span>javafx.scene.Scene;<br><span style="color: rgb(174, 93, 52);">import </span>javafx.scene.control.Label;<br><span style="color: rgb(174, 93, 52);">import </span>javafx.scene.control.Tab;<br><span style="color: rgb(174, 93, 52);">import </span>javafx.scene.control.TabPane;<br><span style="color: rgb(174, 93, 52);">import </span>javafx.scene.layout.StackPane;<br><span style="color: rgb(174, 93, 52);">import </span>javafx.stage.Stage;<br><br><span style="color: rgb(155, 198, 170); font-style: italic;">/**<br></span><span style="color: rgb(155, 198, 170); font-style: italic;"> * This is a test case to validate whether a TabPane respects the preferred<br></span><span style="color: rgb(155, 198, 170); font-style: italic;"> * height of its content.<br></span><span style="color: rgb(155, 198, 170); font-style: italic;"> * </span><span style="color: rgb(112, 187, 139); font-style: italic;">@author </span><span style="color: rgb(155, 198, 170); font-style: italic;">Dirk Lemmermann<br></span><span style="color: rgb(155, 198, 170); font-style: italic;"> */<br></span><span style="color: rgb(174, 93, 52);">public class </span>TabPaneBug <span style="color: rgb(174, 93, 52);">extends </span>GemApplication {<br><br> <span style="color: rgb(187, 181, 83);">@Override<br></span><span style="color: rgb(187, 181, 83);"> </span><span style="color: rgb(174, 93, 52);">public void </span><span style="color: rgb(28, 130, 227);">start</span>(Stage stage) { <span style="color: rgb(174, 93, 52);">super</span>.start(stage);<br> Label label = <span style="color: rgb(174, 93, 52);">new </span>Label(<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>);<br> label.setWrapText(<span style="color: rgb(174, 93, 52);">true</span>);<br> label.setMaxWidth(<span style="color: rgb(97, 255, 255);">500</span>);<br><br> Tab tab1 = <span style="color: rgb(174, 93, 52);">new </span>Tab(<span style="color: rgb(100, 181, 111);">"Tab 1"</span>, label);<br> TabPane tabPane = <span style="color: rgb(174, 93, 52);">new </span>TabPane(tab1);<br><br> StackPane stackPane = <span style="color: rgb(174, 93, 52);">new </span>StackPane(tabPane);<br> stackPane.setPadding(<span style="color: rgb(174, 93, 52);">new </span>Insets(<span style="color: rgb(97, 255, 255);">20</span>));<br><br> stage.setScene(<span style="color: rgb(174, 93, 52);">new </span>Scene(stackPane));<br> stage.sizeToScene();<br> stage.centerOnScreen();<br> stage.setTitle(<span style="color: rgb(100, 181, 111);">"Tab Pane Bug"</span>);<br> stage.show();<br> }<br><br> <span style="color: rgb(174, 93, 52);">public static void </span><span style="color: rgb(28, 130, 227);">main</span>(String[] args) {<br> <span style="font-style: italic;">launch</span>(args);<br> }<br>}</pre></div></div></body></html>