fix #435,better calculations for Tasks borders

pull/1/head
Michail Vourlakos 8 years ago
parent ab0576b687
commit c489300819

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

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

Loading…
Cancel
Save