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:
parent
ab0576b687
commit
c489300819
@ -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 {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user