Bug 447708 - SnapToShape feedback is not correctly displayed for sub node creation.
Summary: SnapToShape feedback is not correctly displayed for sub node creation.
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: backport
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-10-17 09:59 EDT by Maxime Porhel CLA
Modified: 2017-08-22 05:37 EDT (History)
1 user (show)

See Also:


Attachments
SnapToShape feedback (353.24 KB, image/png)
2014-10-17 10:16 EDT, Maxime Porhel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Porhel CLA 2014-10-17 09:59:40 EDT
On a Sirius 2.0 nightly, open an Ecoretools class diagram.
Create a package
Activate the Class creation tool
Hover the package and see the snap to shape feedback which seems to be computed/placed for the diagram and not for the container.
Comment 1 Maxime Porhel CLA 2014-10-17 10:16:09 EDT
Created attachment 247976 [details]
SnapToShape feedback

See the attached screenshot. 

I tried with the EClass creation tool, when I hover some part of the EPackage, the feedback is displayed to draw a line corrsponding to the middle or the bottom of the package container, but the line is not located around the container but on the diagram. 

Furthermore, the scrollbars are displayed sometimes and this seems to occur only when the wrong feedback is displayed.
Comment 2 Maxime Porhel CLA 2014-11-06 05:18:59 EST
Since Sirius 2.0, the snap to shape is active by default for new diagrams. I put this issue as major.
Comment 3 Pierre-Charles David CLA 2014-11-06 08:33:49 EST
If the fix is small and with no risk of regression, this may be worthwhile to backport to 2.0.x.
Comment 4 Pierre-Charles David CLA 2017-08-22 05:37:49 EDT
@Maxime: I can't reproduce this on current master, but I'm under Linux. Can you try again on macOS to see if it's still present?