| Summary: | In case the label is larger than the shape, the shape origin is incorrect. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Alexander Nyßen <nyssen> |
| Component: | GEF DOT | Assignee: | Alexander Nyßen <nyssen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 0.2.0 | ||
| Target Milestone: | 4.0.0 (Neon) RC1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
I pushed the following change to origin/master: - Changed that the top-left position specified via ZestProperties.getPosition() is interpreted as the position of the shape, not the vbox. As such, relocated the vbox to be centered w.r.t. the shape. Resolving as fixed in 4.0.0 RC1. |
Consider the following graph: digraph { layout=dot node[fixedsize=true] 1 [width=1, label="Too wide to fit into the fixed size"]; 2; 3 1 -> 2 3 -> 2 } When rendering in native mode, node 1 is placed using the top-level position calculated from the dot layout as the top-left position of the label. We should instead use it as the top-left position of the shape. We should fix this within Zest, where we currently relocate the shape to be centered above the vbox. Instead, the shape should be placed at the position indicated by ZestProperties.getPosition() and the vbox should be centered w.r.t. to the shape instead.