Commit 29609b0e authored by Marco Martin's avatar Marco Martin
Browse files

fix pos mapping for newRow

parent 4e4cc5ab
...@@ -67,7 +67,8 @@ Item { ...@@ -67,7 +67,8 @@ Item {
// Put it in the general view // Put it in the general view
} else { } else {
newRow = Math.round(newContainer.flow.width / delegate.width) * Math.floor((delegate.y + dragCenterY) / delegate.height) + Math.floor((delegate.x + dragCenterX) / delegate.width) + favoriteStrip.count; var pos = launcherGrid.flow.mapFromItem(delegate, 0, 0);
newRow = Math.floor(newContainer.flow.width / delegate.width) * Math.floor((pos.y + dragCenterY) / delegate.height) + Math.round((pos.x + dragCenterX) / delegate.width) + favoriteStrip.count;
//plasmoid.nativeInterface.applicationListModel.setLocation(delegate.modelData.index, ApplicationListModel.Grid); //plasmoid.nativeInterface.applicationListModel.setLocation(delegate.modelData.index, ApplicationListModel.Grid);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment