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

Bug 484962

Summary: Initial bounds within LayoutContextBehavior#activate() seem to be always empty.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF ZestAssignee: gef-inbox <gef-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: matthias.wienand
Version: 0.2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2015-12-29 04:43:42 EST
The initial bounds computed within LayoutContextBehavior#activate() always seem to be empty (so the code within activate seems to be dead code). We should check wether a lazier initialization of bounds can be performed, so that the bounds are not initialized empty without need.

If possible, we should also consider the use case described in https://www.eclipse.org/forums/index.php/t/1073371/ when investigating this, so we do not rely on the listener mechanism alone for the very first initialization of bounds.
Comment 1 Matthias Wienand CLA 2016-01-05 10:46:21 EST
I cannot reproduce this. The initial bounds are only empty in the case of the behavior being bound to a root graph and the behavior being activated during start-up. For nested graphs and when navigating back from a nested graph to the root graph, the initial bounds are set correctly.
Comment 2 Alexander Nyßen CLA 2016-01-05 11:28:56 EST
Resolving as invalid then.