Bug 522713 - Snap to grid constraint is not taken into account during drag and drop of border node.
Summary: Snap to grid constraint is not taken into account during drag and drop of bor...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-09-25 05:39 EDT by Jessy Mallet CLA
Modified: 2017-09-28 03:21 EDT (History)
1 user (show)

See Also:


Attachments
Test case used to reproduced the problem. (6.70 KB, application/x-zip-compressed)
2017-09-25 05:39 EDT, Jessy Mallet CLA
no flags Details
ScreenShot of the DnD behaviour. (90.76 KB, image/png)
2017-09-25 05:45 EDT, Jessy Mallet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jessy Mallet CLA 2017-09-25 05:39:30 EDT
Created attachment 270337 [details]
Test case used to reproduced the problem.

On diagram with "Snap to grid" activated, when user wants to drag and drop a border node on the grid, two possibilities are offers. First one, it is snapped to the grid and second one, it can be very close to another one without being snapped. The second choice can not be possible if there is possibilities to snap on the grid.

I think , all border nodes should take into account "Snap to grid" constraints when grid spacing is sufficient.


Step to reproduce :
* import in your workspace the modeling project DragAndDropBorderNode.zip,
* open representation "new packageDiag",
* make sure that "Snap to Grid" box is marked in properties view of diagram (tab Rulers&Grid) and set the grid spacing to 80 pixels. 
* drag and drop C2 class close to C1, it is possible and not snapped on the grid -> KO
  the border node should be aligned on the grid.
Comment 1 Jessy Mallet CLA 2017-09-25 05:45:17 EDT
Created attachment 270338 [details]
ScreenShot of the DnD behaviour.
Comment 2 Florian Barbin CLA 2017-09-28 03:21:40 EDT
Issue reproduced and marked as triaged.