Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330746

Summary: Drag&Drop not observing grid constraints
Product: [Modeling] Graphiti Reporter: Volker Wegert <eclipse>
Component: CoreAssignee: Matthias Gorning <matthias.gorning>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.gorning, michael.wenz
Version: 0.7.0Flags: matthias.gorning: indigo+
Target Milestone: 0.8.0   
Hardware: All   
OS: All   
Whiteboard: Indigo M5 theme_round_offs
Attachments:
Description Flags
Screenshot of correct behaviour
none
Screenshot of scrolled container
none
Screenshot showing incorrect drag&drop positioning none

Description Volker Wegert CLA 2010-11-20 16:14:25 EST
Build Identifier: 20100917-0705

I have a large container element which is positioned at (0,0) and can contain other elements (the blue translucent rectangle in the screenshots). When I select an element inside this container, I can drag it around and the editor always sticks to the grid (see screenshot 1).

When I select the container itself, the editor scrolls approx. 5 pixels up (see screenshot 2) - probably to ensure that the resizing handles are visible. If I then click an element within the container and immediately start dragging it around, the editor scrolls back to its original position. The shadow indicating the dragged object still seems to stick to the old grid positions before that scrolling operation (see screenshot 3) and accordingly lets me drop the element at a position that does not conform to the grid.

Note that this does not happen if I select the element, release the mouse button and then click a second time to drag it.

Reproducible: Always
Comment 1 Volker Wegert CLA 2010-11-20 16:15:00 EST
Created attachment 183529 [details]
Screenshot of correct behaviour
Comment 2 Volker Wegert CLA 2010-11-20 16:15:28 EST
Created attachment 183530 [details]
Screenshot of scrolled container
Comment 3 Volker Wegert CLA 2010-11-20 16:15:50 EST
Created attachment 183531 [details]
Screenshot showing incorrect drag&drop positioning
Comment 4 Matthias Gorning CLA 2011-01-18 05:58:33 EST
Fixed. Now drag&drop positioning works as expected.
Comment 5 Michael Wenz CLA 2011-05-27 09:13:38 EDT
Part of 0.8.0
Comment 6 Michael Wenz CLA 2011-06-24 09:07:42 EDT
Part of Graphiti Indigo 0.8.0