Fix inconsistent left and right padding in PlasmoidHeading
This commit is contained in:
parent
c659d73598
commit
33660db124
@ -42,8 +42,6 @@ import "private" as Private
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
bottomPadding: location == PlasmoidHeading.Location.Footer ? 0 : -backgroundMetrics.getMargin("bottom")
|
bottomPadding: location == PlasmoidHeading.Location.Footer ? 0 : -backgroundMetrics.getMargin("bottom")
|
||||||
topPadding: location == PlasmoidHeading.Location.Footer ? -backgroundMetrics.getMargin("top") : 0
|
topPadding: location == PlasmoidHeading.Location.Footer ? -backgroundMetrics.getMargin("top") : 0
|
||||||
leftPadding: -backgroundMetrics.getMargin("left")
|
|
||||||
rightPadding: -backgroundMetrics.getMargin("right")
|
|
||||||
|
|
||||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, implicitContentHeight + topPadding + bottomPadding)
|
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, implicitContentHeight + topPadding + bottomPadding)
|
||||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding)
|
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding)
|
||||||
|
Loading…
Reference in New Issue
Block a user