| Summary: | Make ToolbarLayout extensible | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Pratik Shah <ppshah> | ||||||
| Component: | GEF-Legacy Draw2d | Assignee: | Pratik Shah <ppshah> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | hudsonr, nyssen | ||||||
| Version: | 3.2 | ||||||||
| Target Milestone: | 3.3.0 (Europa) RC1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Pratik Shah
Created attachment 67119 [details]
Added getChildPreferredSize() and getChildMinimumSize()
This is essentially 3.2.2 version of ToolbarLayout with two new protected methods getChildPreferredSize() and getChildMinimumSize() added. calculatePreferredSize() and layout() use those methods now. The default implementation provided could be changed to simply invoke child.getPreferredSize() and child.getMinimumSize().
Created attachment 67301 [details]
Patch for ToolbarLayout
Here's a patch for ToolbarLayout which would allow easier extension of the functionality (as in the previous attachment).
Fixed. |