| Summary: | [All diagrams] Zoom factor has no effect | ||
|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Loïc Quéran <loic.queran> |
| Component: | Core | Assignee: | Project Inbox <mdt-papyrus-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ansgar.radermacher, cedric.dumoulin |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Loïc Quéran
The error is reproducible with all diagrams (changed title) There is (at least one way) to reproduce the behavior: it happens, once multiple copies of a diagram tab are open and is thus related to bug 335424 (hopefully, this is the only way to trigger the zoom-with-effect behavior). Once the latter is fixed, this bug should only be closed after an examination whether it can be triggered by additional manipulations. Apparently, I did not observe the behavior correctly: The problem occurs, if more than one diagram is open (i.e. it does not depend on 335424). The changing of the zoom factor via the zoom box always affects only the one diagram (the last that has been opened). The zoom factor work on the currently selected diagram. It doesn't change the zoom of all diagrams in one go. This is the normal behavior. I can't reproduce your bug. The class implementing the zoom factor is: org.eclipse.papyrus.diagram.menu.toolbar.ZoomToolbar No, it does not. The problem is not that we want to change the zoom factor of all diagrams at the same time. The problem is that it does not change the zoom factor of the currently active diagram, but only of the one that has been opened at latest.
Steps to reproduce:
- open a model with at least two diagrams.
- close all diagrams
- open a first diagram (zoom should be at 100%)
- now open a second diagram, select it and change the zoom factor.
- now select the first diagram again
=> 1. the zoom factor remains on the value of the 2nd diagram
=> 2. changing the zoom factor only affects the 2nd diagram, although the first
is active (visible)
It seems that the zoom dialog box remains linked with the latest diagram that has been added and not with the active diagram.
> The zoom factor work on the currently selected diagram. It doesn't change the
> zoom of all diagrams in one go.
> This is the normal behavior.
> I can't reproduce your bug.
>
> The class implementing the zoom factor is:
> org.eclipse.papyrus.diagram.menu.toolbar.ZoomToolbar
This bug has been fixed in the 0.8 version of Papyrus. It replaces the GMF tool-box line (including the zoom-box) with a re-implementation (in plugin org.eclipse.papyrus.diagram.menu). Since the effort of fixing the bug for version 0.7.x. would presumably be rather high, it will not be done for version 0.7.x. For this version, a work-around is to use control + mouse-wheel to zoom-in and out. This works, even if the zoom-box eventually shows the zoom-factor of another diagram (In case of windows, control "+" and "-" might work as well). |