1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-08 01:18:21 +03:00

respect indicators iconOffsetX/Y values properly

BUG:440283
This commit is contained in:
Michail Vourlakos 2021-07-26 09:52:38 +03:00
parent f2c401b02f
commit 47702a59be

View File

@ -92,9 +92,6 @@ Item{
anchors.leftMargin: (abilityItem.location === PlasmaCore.Types.LeftEdge) ? abilityItem.abilities.metrics.margin.screenEdge : 0
anchors.rightMargin: (abilityItem.location === PlasmaCore.Types.RightEdge) ? abilityItem.abilities.metrics.margin.screenEdge : 0
anchors.horizontalCenterOffset: abilityItem.iconOffsetX
anchors.verticalCenterOffset: abilityItem.iconOffsetY
width: abilityItem.isHorizontal ? parabolicItem.regulatorLength : parabolicItem.regulatorThickness
height: abilityItem.isHorizontal ? parabolicItem.regulatorThickness : parabolicItem.regulatorLength
@ -140,6 +137,9 @@ Item{
Item {
id: _contentItemContainer
anchors.centerIn: parent
anchors.horizontalCenterOffset: abilityItem.iconOffsetX
anchors.verticalCenterOffset: abilityItem.iconOffsetY
width: newTempSize
height: width
visible: !abilityItem.isSeparator