Skip to content

Commit

Permalink
respect indicators iconOffsetX/Y values properly
Browse files Browse the repository at this point in the history
BUG:440283
  • Loading branch information
psifidotos committed Jul 26, 2021
1 parent f2c401b commit 47702a5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47702a5

Please sign in to comment.