mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
fix pos mapping for newRow
This commit is contained in:
parent
4e4cc5abc2
commit
29609b0e7a
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ Item {
|
|||
|
||||
// Put it in the general view
|
||||
} 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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue