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

John Hendrikx jhendrikx at openjdk.org
Wed Feb 18 08:22:30 UTC 2026


On Tue, 17 Feb 2026 12:24:50 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> This fixes the regression in FlowPane introduced with JDK-8350149 -- the calls have been adjusted in such a way that they follow the pre-25 JavaFX behavior.
>
> Maybe we should have a unit test to prevent a future regression.

> agree with @mstr2 's suggestion to add a test: the stub text layout should be able to handle this case.
> 
> the change also fixed the vertical positioning of the flowPane's children, not sure why.

Could you explain what you mean by that?  Is that a change from how it worked in JavaFX 24?  My intention with this change is not to fix other bugs, just the regression presented in the ticket, although it is possible that changes in the Region function it uses fixed something else as well.

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

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


More information about the openjfx-dev mailing list