Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 159015

Summary: BorderLayout does not respect preferred size of child's border
Product: [Tools] GEF Reporter: Randy Hudson <hudsonr>
Component: GEF-Legacy Draw2dAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: unspecified   
Target Milestone: 3.10.0 (Mars) M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Randy Hudson CLA 2006-09-27 15:00:37 EDT
I think every layout except for BorderLayout respects the child's border's preferred size. See Border#getPreferredSize(..), callers of, callers of.
Comment 1 Alexander Nyßen CLA 2014-08-08 10:29:19 EDT
Fixed that within BorderLayout#calculatePreferredSize(IFigure, int, int), the preferred size of the container's border is respected as within the other layouts:

prefSize.union(getBorderPreferredSize(figure));

Resolving as fixed in 3.10.0M1.