Bug 447708

Summary: SnapToShape feedback is not correctly displayed for sub node creation.
Product: [Modeling] Sirius Reporter: Maxime Porhel <maxime.porhel>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: pierre-charles.david
Version: unspecifiedKeywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard: backport
Attachments:
Description Flags
SnapToShape feedback none

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?