| Summary: | FreeformLayer doesn't translate its children | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Adam Cabler <acabler> |
| Component: | GEF-Legacy Draw2d | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Adam Cabler
This is because a freeform layer moves *after* its children have finished moving. The layer wraps itself around its children, it never moves its children. (In reply to comment #1) > This is because a freeform layer moves *after* its children have finished > moving. The layer wraps itself around its children, it never moves its > children. > Is this actually stated anywhere? From FreeformFigure's javadoc:
This figure must be placed in a {@link org.eclipse.draw2d.FreeformViewport}. Also, you shouldn't call {@link IFigure#setBounds(Rectangle)} on this figure. The bounds will be calculated based on the extent of its children. A FreeformFigure's bounds will be the smallest rectangle that will contain all of its children.
|