mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-24 18:03:53 +03:00
position correctly new applets
This commit is contained in:
parent
477f959f51
commit
f4fa8cf0c7
@ -351,6 +351,13 @@ DragDrop.DropArea {
|
||||
}
|
||||
|
||||
updateLayouts();
|
||||
|
||||
//! This is used in case the dndspacer has been left behind
|
||||
//! e.g. the user drops a folder and a context menu is appearing
|
||||
//! but the user decides to not make a choice for the applet type
|
||||
if (dndSpacer.parent !== root) {
|
||||
dndSpacer.parent = root;
|
||||
}
|
||||
}
|
||||
|
||||
onDockChanged: {
|
||||
@ -453,7 +460,8 @@ DragDrop.DropArea {
|
||||
|
||||
root.addLaunchersMessage = false;
|
||||
dndSpacer.opacity = 0;
|
||||
dndSpacer.parent = root;
|
||||
//! this line is very important because it positions correctly the new applets
|
||||
//dndSpacer.parent = root;
|
||||
}
|
||||
|
||||
onLatteAppletChanged: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user