Commit d1d91226 authored by Yaroslav Beltukov's avatar Yaroslav Beltukov Committed by Arjen Hiemstra

Move minimumWidth from PieChart to FullRepresentation

parent 03724f8d
......@@ -36,8 +36,7 @@ Faces.SensorFace {
id: root
contentItem: ColumnLayout {
PieChart {
Layout.minimumWidth: -1
Layout.maximumHeight: root.width
Layout.maximumHeight: Math.max(root.width, Layout.minimumHeight)
Layout.fillWidth: true
Layout.fillHeight: !label.visible
Layout.alignment: Qt.AlignCenter
......
......@@ -59,6 +59,7 @@ Faces.SensorFace {
id: compactRepresentation
Layout.fillWidth: true
Layout.fillHeight: true
Layout.minimumWidth: root.formFactor != Faces.SensorFace.Vertical ? Kirigami.Units.gridUnit * 4 : Kirigami.Units.gridUnit
Layout.minimumHeight: root.formFactor === Faces.SensorFace.Constrained
? Kirigami.Units.gridUnit
: 5 * Kirigami.Units.gridUnit
......
......@@ -38,7 +38,6 @@ ChartControls.PieChartControl {
property alias sensors: sensorsModel.sensors
property alias sensorsModel: sensorsModel
Layout.minimumWidth: root.formFactor != Faces.SensorFace.Vertical ? Kirigami.Units.gridUnit * 4 : Kirigami.Units.gridUnit
Layout.minimumHeight: root.formFactor == Faces.SensorFace.Vertical ? width : Kirigami.Units.gridUnit
leftPadding: 0
......
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