From c489300819505b6e521a16d1a1a841ec9297eba3 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 1 May 2017 19:29:23 +0300 Subject: [PATCH] fix #435,better calculations for Tasks borders --- containment/contents/ui/AppletItem.qml | 4 ++-- plasmoid/contents/ui/main.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/containment/contents/ui/AppletItem.qml b/containment/contents/ui/AppletItem.qml index 2663301d3..9d9962453 100644 --- a/containment/contents/ui/AppletItem.qml +++ b/containment/contents/ui/AppletItem.qml @@ -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 { diff --git a/plasmoid/contents/ui/main.qml b/plasmoid/contents/ui/main.qml index d850806d7..46caffe5a 100644 --- a/plasmoid/contents/ui/main.qml +++ b/plasmoid/contents/ui/main.qml @@ -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.