mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-25 19:21:41 +03:00
fix Fitt's Law for justify vertical panels
This commit is contained in:
parent
d47f01a499
commit
a80c71981a
@ -166,7 +166,8 @@ Item{
|
||||
} else if (root.myView.alignment === LatteCore.Types.Center) {
|
||||
bestMatchingPadding = Math.max(background.paddings.left, minimumPadding) - minimumPadding;
|
||||
} else if (root.myView.alignment === LatteCore.Types.Justify) {
|
||||
bestMatchingPadding = Math.max(background.paddings.left, minimumPadding) - minimumPadding;
|
||||
var backpadding = root.isHorizontal ? background.paddings.left : background.paddings.top;
|
||||
bestMatchingPadding = Math.max(backpadding, minimumPadding) - minimumPadding;
|
||||
}
|
||||
|
||||
//shadow is already calculated in Justify mode
|
||||
@ -188,7 +189,8 @@ Item{
|
||||
} else if (root.myView.alignment === LatteCore.Types.Center) {
|
||||
bestMatchingPadding = Math.max(background.paddings.right, minimumPadding) - minimumPadding;
|
||||
} else if (root.myView.alignment === LatteCore.Types.Justify) {
|
||||
bestMatchingPadding = Math.max(background.paddings.right, minimumPadding) - minimumPadding;
|
||||
var backpadding = root.isHorizontal ? background.paddings.right : background.paddings.bottom;
|
||||
bestMatchingPadding = Math.max(backpadding, minimumPadding) - minimumPadding;
|
||||
}
|
||||
|
||||
//shadow is already calculated in Justify mode
|
||||
|
Loading…
Reference in New Issue
Block a user