Community
Participate
Working Groups
TEST CASE 1. Create a logic diagram and add two geometric shapes (A & B) to the canvas. Make the shapes ~ 3" x 3" in size. 2. Drag B around, note how it snaps to the grid. 3. Drag B over A RESULT: The snap to grid feature stops working and B can be positioned off of the grid.
Isn't this a GEF issue?
The snapping feature stops working specifically when the mouse pointer is over the underlying object.
Created attachment 52129 [details] Patch for snapping to grid when over other shapes There are two issues. 1) The NonResizableEditPolicyEx that needs to understand the drop requests. 2) The DragEditPartsTrackerEx is setting the target editpart to be the editpart belonging to the shape that you are moving. In GEF, it appears that the LogicDiagramEditPart is returned. I forced the DiagramEditPart to be returned for GMF as well. I don't believe this to be a viable solution but a proof of concept and guide to other possible solutions.
Marking as a usability issue. Not a critical issue for the maintenance release.
Mohammed, can you review this patch for 2.0 M4?
(In reply to comment #5) > Mohammed, can you review this patch for 2.0 M4? Talked to TOM, The attached patch is not intended to be submitted we are considering other possible fix
Refactored the snape to grid support, and fixed the problem
[target cleanup] 2.0 M5 was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug