Commit ab0362b4 authored by Marco Martin's avatar Marco Martin
Browse files

Remove leftPadding/rightPadding

AbstractSensorFace doesn't have leftPadding/rightPadding properties
parent 5795bb15
......@@ -37,7 +37,7 @@ Faces.SensorFace {
// Arbitrary minimumWidth to make easier to align plasmoids in a predictable way
Layout.minimumWidth: Math.max(Kirigami.Units.gridUnit * compactRepresentation.barCount, Kirigami.Units.gridUnit * 8)
Layout.preferredWidth: titleMetrics.width + leftPadding + rightPadding
Layout.preferredWidth: titleMetrics.width
contentItem: ColumnLayout {
Kirigami.Heading {
......
......@@ -34,7 +34,7 @@ Faces.SensorFace {
readonly property bool showLegend: controller.faceConfiguration.showLegend
// Arbitrary minimumWidth to make easier to align plasmoids in a predictable way
Layout.minimumWidth: Kirigami.Units.gridUnit * 8
Layout.preferredWidth: titleMetrics.width + leftPadding + rightPadding
Layout.preferredWidth: titleMetrics.width
contentItem: ColumnLayout {
Kirigami.Heading {
......
......@@ -36,7 +36,7 @@ Faces.SensorFace {
readonly property bool showLegend: controller.faceConfiguration.showLegend
Layout.minimumWidth: Kirigami.Units.gridUnit * 8
Layout.preferredWidth: titleMetrics.width + leftPadding + rightPadding
Layout.preferredWidth: titleMetrics.width
contentItem: ColumnLayout {
spacing: Kirigami.Units.largeSpacing + Kirigami.Units.smallSpacing
......
......@@ -35,7 +35,7 @@ Faces.SensorFace {
// Arbitrary minimumWidth to make easier to align plasmoids in a predictable way
Layout.minimumWidth: Kirigami.Units.gridUnit * 8
Layout.preferredWidth: titleMetrics.width + leftPadding + rightPadding
Layout.preferredWidth: titleMetrics.width
contentItem: ColumnLayout {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment