miglayout icon indicating copy to clipboard operation
miglayout copied to clipboard

Some absolute positions should not affect min/preferred size

Open mikaelgrev opened this issue 2 years ago • 0 comments

If a component/Node is positioned with "pos" it should not affect the min/preferred width of the parent if it has a reference to either .x2 or width since it creates a circular dependency and will lead to inconsistencies. Same in the vertical dimension.

The fix should probably be done somewhere in the Grid class or the LinkHandler.setBounds(...).

I don't have time to fix it right now, but it is worth noting since it creates nasty and hard to understand layout bugs.

mikaelgrev avatar Mar 13 '22 09:03 mikaelgrev