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

Bug 517306

Summary: Edge labels are reset to their computed position when hovering/selecting an edge in the Zest Graph Example.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF ZestAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.1.0   
Target Milestone: 5.0.0 (Oxygen) RC2   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2017-05-26 10:31:49 EDT
Currently, when hovering/selecting an edge within the Zest Graph Example, the label of the edge is reset to its computed position, i.e. when an edge label position is changed manually, it will not be preserved when hovering or selecting the edge.
Comment 1 Matthias Wienand CLA 2017-05-29 08:43:52 EDT
The label positions were reset due to a layout pass that was executed when changes to the anchoreds of nodes or edges were recorded. However, feedback and handles are also implemented as anchoreds, thus, they triggered a layout pass. In order to resolve the issue, I added a guard to the layout code, so that a layout pass is not performed if only feedback or handles changed. The code is published on the master branch, therefore, I resolve this ticket as fixed for 5.0.0 RC2.