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

Bug 493095

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 DOTAssignee: 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:

Description Alexander Nyßen CLA 2016-05-05 13:39:49 EDT
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.
Comment 1 Alexander Nyßen CLA 2016-05-05 13:46:53 EDT
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.