| Summary: | GridLayout.layout(...) ignores border insets | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Adrian Price <adrianp.quatinus> | ||||
| Component: | GEF-Legacy Draw2d | Assignee: | gef-inbox <gef-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | ahunter.eclipse, mseele, nyssen | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.5.0 (Galileo) M6 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Adrian Price
Created attachment 114220 [details]
proposed patch
#layout() works with the client area and GridLayout#layout() doesw work with the client area. I think you actually need the fix in GridLayout#calculatePreferredSize(...). The fix-patch is attached.
Hi Adrian, Can you confirm the patch fixes your issue? (In reply to comment #2) > Hi Adrian, Can you confirm the patch fixes your issue? Hi Alex and Anthony, The patch seems to do the trick for my application. It is almost identical to the calculatePreferredSize() override that I have been using, other than that the patch accounts in addition for the border's preferred size. Many thanks, Adrian. (Senior Architect, TIBCO Software Inc.) will the fix be released in the next draw2d version? that will be great! Committed to HEAD for GEF (draw2d) 3.5 |