| Summary: | Provide #fitToSize() functionality in ViewportPolicy and use it in FitToViewportAction. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Matthias Wienand <matthias.wienand> |
| Component: | GEF MVC | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 1.1.0 | ||
| Target Milestone: | 5.0.0 (Oxygen) M5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Matthias Wienand
I implemented ViewportPolicy#fitToSize(), #fitToSize(zoomMin), and #fitToSize(zoomMin, zoomMax). The method is safe against being called when the InfiniteCanvas does not have contents. The FitToViewportAction delegates to ViewportPolicy now for constructing the operation that actually performs fit-to-viewport. The code is published on the master branch, therefore, I resolve this ticket as fixed for 5.0.0 M5. |