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

Bug 510429

Summary: Unlock FitToViewportLockAction when the zoom level or scroll offset is changed.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.1.0   
Target Milestone: 5.0.0 (Oxygen) M6   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2017-01-13 07:38:51 EST
Currently, the FitToViewportLockAction is neither unlocked automatically, nor does it enforce that the contents remain fit to the viewport in all cases. Specifically, the action does only perform fit-to-viewport, when the viewport size is changed. Therefore, the action should get unlocked when the zoom level or the scroll offset is changed.
Comment 1 Matthias Wienand CLA 2017-02-20 08:59:07 EST
I added listeners on the various viewport properties (width, height, content-transform, content-bounds, horizontal-offset, vertical-offset) to ensure fit-to-viewport is performed when the size or bounds are changed while locked, as well as to ensure fit-to-viewport is unlocked when the user manually performs scrolling or zooming. The code is published on the master branch, therefore, I resolve this ticket as fixed for 5.0.0 M6.