Community
Participate
Working Groups
Created attachment 269714 [details] Test case to use. On diagram with "Snap to grid" activated, when user drag and drop an element from model explorer on the diagram, tne new border node appears but it does not respect "Snap to grid" constraints and it is not aligned with the grid anymore. Drag and drop action should take into account "Snap to grid" constraints. 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) * select "C5" class in P2 package from model explorer and drag and drop on P3 package on diagram * border Node appears on P3 package but it is not snap on grid anymore -> KO It should be align on the grid.
Created attachment 269715 [details] ScreenShot of the Drag and drop behaviour
Created attachment 269728 [details] Properties of the grid
Issue accepted and marked as triaged.
Gerrit change https://git.eclipse.org/r/102946 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=225652f3366325a746b4269427144f0b5fd995fd
Gerrit change https://git.eclipse.org/r/103214 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=c30431ea5f7426490021a6ddbddecf0b0322a286
Some tests of org.eclipse.sirius.tests.swtbot.DragAndDropWithSnapToGridTest are always KO even with the above fix. It reveals this problem: Steps to reproduce: * Import project DesignerTestProject from DnDProject.zip * Open diagram new TC1041 representation 2 Blank * Activate the snap to grid with a grid step of 25 pixels (for example) * Move P2 on the diagram * KO, the new container is not snap to the grid This problem will be probably another issue as it is not a drag'n'drop from ModelExplorer.
A specific issue, bug 521802, has been created for the above problem.
New Gerrit change created: https://git.eclipse.org/r/104312
Gerrit change https://git.eclipse.org/r/104312 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=306c644ac526936a3d204ffad47ad8a9b681a36d
New Gerrit change created: https://git.eclipse.org/r/104726
Gerrit change https://git.eclipse.org/r/104726 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9af7e34fe424a18652af3f3295caf9ff20b2c014
New Gerrit change created: https://git.eclipse.org/r/105506
Additional Steps to reproduce There is an issue with zoom 175% for instance: Import the new use case Open "new TC1041 representation 2 Blank" Activate the snap to grid (50px for instance) Set the zoom at 175% Drag and drop P1 KO : P1 is not snap on the grid.
Created attachment 270274 [details] new issue use case
Created attachment 270276 [details] new issue use case
Gerrit change https://git.eclipse.org/r/105506 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=001105dbe05a0cfd03fb63533051b954dbf9a9c0
Validated on Sirius Stable 5.1.0.201709221508
Available in Sirius 5.1.0, see https://wiki.eclipse.org/Sirius/5.1.0.