Bug 492967 - Sirius diagram overview in Outline view broken for objects positioned negatively relative to diagram origin
Summary: Sirius diagram overview in Outline view broken for objects positioned negativ...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-05-04 05:45 EDT by Dennis Hendriks CLA
Modified: 2016-05-30 09:50 EDT (History)
3 users (show)

See Also:


Attachments
Screenshot of correct overview (72.79 KB, image/png)
2016-05-04 05:45 EDT, Dennis Hendriks CLA
no flags Details
Screenshot of wrong overview (59.14 KB, image/png)
2016-05-04 05:46 EDT, Dennis Hendriks CLA
no flags Details
Empty outline with negative relative move (4.15 KB, application/zip)
2016-05-04 10:00 EDT, Julien Dupont CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Hendriks CLA 2016-05-04 05:45:09 EDT
Steps to reproduce:

1) Create an EMF project with an Ecore model.
2) Create a class diagram for the Ecore model.
3) Add some classes to the Ecore model.
4) Observe how the diagram overview in the Outline view is OK.
5) Move the classes to be positioned negatively relative to the diagram origin.
6) Observe how the diagram overview no longer reflects the visible part of the diagram editor.

It appears the negative offset with respect to the diagram origin is not taken int account when painting the diagram overview in the Outline view. As a result of this, the overview is drawn too much to the right/below. This effect is more clearly visible when only moving the classes a little bit, then moving them again a little bit, etc, until they are completely to the negative part.
Comment 1 Dennis Hendriks CLA 2016-05-04 05:45:45 EDT
Created attachment 261451 [details]
Screenshot of correct overview
Comment 2 Dennis Hendriks CLA 2016-05-04 05:46:04 EDT
Created attachment 261452 [details]
Screenshot of wrong overview
Comment 3 Julien Dupont CLA 2016-05-04 10:00:58 EDT
Created attachment 261463 [details]
Empty outline with negative relative move

Example(NegativeRelativePosition.zip) to reproduce problem more quickly. 

Open NegativeRelativePosition Diagram.
Select Test1 and Test2 and move these to left top corner until they are not visible in the outline.
Comment 4 Julien Dupont CLA 2016-05-04 10:10:12 EDT
Dennis, 

For information you can use Ctrl + & to reset diagram origin as explain in the documentation: http://www.eclipse.org/sirius/doc/user/diagrams/Diagrams.html#ResetDiagramorContainerOrigin

Regards,
Comment 5 Dennis Hendriks CLA 2016-05-04 11:20:29 EDT
(In reply to Julien Dupont from comment #4)
> For information you can use Ctrl + & to reset diagram origin as explain in
> the documentation:
> http://www.eclipse.org/sirius/doc/user/diagrams/Diagrams.
> html#ResetDiagramorContainerOrigin

Thanks, that's a quick and useful workaround.

But still, the bug should be fixed at some point, I think.
Comment 6 Laurent Redor CLA 2016-05-30 09:50:11 EDT
Hi,
	
Thanks for your detailled bug report.
We have reproduced this issue and we consider it as valid.
Nevertheless, we have currently not planned to work on it in the following releases.