1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-22 14:50:31 +03:00

include statesLine metrics when task isStartup

This commit is contained in:
Michail Vourlakos 2017-05-17 15:30:20 +03:00
parent 515384dd48
commit abc45e4c4d

View File

@ -306,10 +306,13 @@ MouseArea{
return (root.iconSize + root.widthMargins) * mScale + root.statesLineSize;
}
if (mainItemContainer.isStartup && root.durationTime !==0 )
return cleanScalingWidth;
else
if (mainItemContainer.isStartup && root.durationTime !==0 ) {
var moreThickness = root.vertical ? addedSpace : 0;
return cleanScalingWidth + moreThickness;
} else {
return showDelegateWidth;
}
}
height: {
@ -323,10 +326,13 @@ MouseArea{
return (root.iconSize + root.heightMargins) * mScale + root.statesLineSize;
}
if (mainItemContainer.isStartup && root.durationTime !==0)
return cleanScalingHeight;
else
if (mainItemContainer.isStartup && root.durationTime !==0){
var moreThickness = !root.vertical ? addedSpace : 0;
return cleanScalingHeight + moreThickness;
} else {
return showDelegateheight;
}
}
//size needed fom the states below icons