1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-11 13:18:13 +03:00

fix #435,better calculations for Tasks borders

This commit is contained in:
Michail Vourlakos 2017-05-01 19:29:23 +03:00
parent ab0576b687
commit c489300819
2 changed files with 4 additions and 4 deletions

View File

@ -376,7 +376,7 @@ Item {
if (latteApplet) {
if (container.showZoomed && root.isVertical)
return Math.round(scaledWidth);
return root.statesLineSize + root.thickMargin + root.iconSize + 1;
else
return Math.round(latteApplet.tasksWidth);
} else {
@ -398,7 +398,7 @@ Item {
if (latteApplet) {
if (container.showZoomed && root.isHorizontal)
return Math.round(scaledHeight);
return root.statesLineSize + root.thickMargin + root.iconSize + 1;
else
return Math.round(latteApplet.tasksHeight);
} else {

View File

@ -850,8 +850,8 @@ Item {
target: icList
property int maxSize: (root.hoveredIndex>=0 && !root.dragSource) ?
root.statesLineSize + root.zoomFactor * (root.iconSize + root.thickMargin) - 1 :
root.statesLineSize + root.iconSize + root.thickMargin - 1
root.statesLineSize + root.zoomFactor * (root.iconSize + root.thickMargin) :
root.statesLineSize + root.iconSize + root.thickMargin
function urlsDroppedOnArea(urls){
// If all dropped URLs point to application desktop files, we'll add a launcher for each of them.