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:
parent
515384dd48
commit
abc45e4c4d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user