1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-05 17:47:23 +03:00

justify:move dropped applets in correct position

This commit is contained in:
Michail Vourlakos 2020-08-03 00:47:25 +03:00
parent 0bcc45e633
commit 3ce1eb06bd

View File

@ -22,6 +22,8 @@ import QtQuick 2.7
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.draganddrop 2.0 as DragDrop
import org.kde.latte.core 0.2 as LatteCore
DragDrop.DropArea {
id: dragArea
@ -215,5 +217,9 @@ DragDrop.DropArea {
root.addLaunchersMessage = false;
dndSpacer.opacity = 0;
if (dragInfo.isPlasmoid && root.panelAlignment === LatteCore.Types.Justify) {
root.layoutManagerMoveAppletsBasedOnJustifyAlignment();
}
}
}