Weird issue with UI Toolkit and flex.

I did not change anything related to this after upgrading from 2022.3 to 6000.

The issue is that my visualelements are not wrapping as expected. This section is supposed to have 7 buttons, that as you can see render outside of the parent.
9705380--1386113--upload_2024-3-16_18-44-50.png

As you can see, the parent is only 230px wide and is set to “wrap”:

Again, that was working just fine before upgrading.

Has anyone had similar issues in 6000?

Thanks.

Anyone from Unity can think of something I might be doing wrong there? Or a possible difference from 2022.3 to 6000 that could cause that?