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

Bug 546379

Summary: FitToViewportLockAction does not perform its action when contents change
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: miklossy
Version: 5.0.100   
Target Milestone: 5.1.0 (2019-06)   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2019-04-12 10:00:31 EDT
In the context of DotGraphView, it has been noticed that FitToViewportLockAction does not perform fit-to-viewport when the contents are set for the first time or are changed.

Therefore, a workaround has been introduced so that fit-to-viewport is always performed after setting/changing contents.

However, the underlying problem should rather be fixed and the workaround should be removed.
Comment 1 Matthias Wienand CLA 2019-05-31 08:36:12 EDT
I pushed some changes to master that should ensure fit-to-viewport is performed when content bounds change. We really need to setup a test infrastructure for the actions, though. Nonetheless, I will resolve this ticket as fixed for 5.1.0 (2019-06).