Bug 359755

Summary: FolderView drop location is determined by topleft corner of icon
Product: [Plasma] plasmashell Reporter: Kai Uwe Broulik <kde>
Component: Desktop icons & Folder View widgetAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: normal CC: plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kai Uwe Broulik 2016-02-24 14:56:18 UTC
When I drag around files on the FolderView containment and drop them, they end up in the position that the top left corner of the icon was in rather than the cell my mouse hovered.

Reproducible: Always

Steps to Reproduce:
1. Use Folder containment
2. Start dragging an icon
3. Move the icon ever so slightly to the left (make sure there's a free space left of it)
4. Drop

Actual Results:  
The icon most likely will be dropped into the cell left of it although I barely moved the icon and my mouse was still clearly inside the original cell

Expected Results:  
The icon will be dropped where I got it from, ie. the cell my mouse was in
Comment 1 Eike Hein 2016-02-25 11:39:44 UTC
Git commit c7e0335677244cf4c4c0d82701c730c4481aa02c by Eike Hein.
Committed on 25/02/2016 at 11:38.
Pushed by hein into branch 'Plasma/5.5'.

Use the item midpoint when calculating grid drop coords.

Not sure how this got lost.
Related: bug 358745

M  +2    -2    containments/desktop/package/contents/ui/FolderView.qml

http://commits.kde.org/plasma-desktop/c7e0335677244cf4c4c0d82701c730c4481aa02c