RFR: 8377153: JavaFX FlowPane layout causing improper wrapping of TextFlow nodes with max-width styling

John Hendrikx jhendrikx at openjdk.org
Wed Feb 25 11:28:44 UTC 2026


On Tue, 24 Feb 2026 14:31:31 GMT, Alessadro Parisi <duke at openjdk.org> wrote:

> Hey, I'm not sure if my issue is related in some way to this, but text wrapping behavior seems to have changed from JavaFX 24 to 25. I have this:

@palexdev That's correct, it's probably related to the regression you can find in the ticket linked to this PR: https://bugs.openjdk.org/browse/JDK-8377153

> Edit: forgot to mention that by doing `bottom.setMinHeight(Region.USE_PREF_SIZE);` the old behavior is back and the text is wrapped.

Yes, that likely will restore the old behavior for the most part. Once this fix is in, this won't be needed.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2077#issuecomment-3955112225


More information about the openjfx-dev mailing list