Commit 2cffe546 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Use a minimum height for legends of charts

The new legend will happily decrease its height to 0. To prevent this,
we need to make sure things have a useful minimum height.
parent 4ed120fe
......@@ -121,7 +121,7 @@ Faces.SensorFace {
Layout.minimumHeight: root.formFactor === Faces.SensorFace.Horizontal
|| root.formFactor === Faces.SensorFace.Vertical
? implicitHeight
: -1
: Kirigami.Units.gridUnit
visible: root.showLegend
chart: compactRepresentation
sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null
......
......@@ -122,7 +122,7 @@ Faces.SensorFace {
Layout.minimumHeight: root.formFactor === Faces.SensorFace.Horizontal
|| root.formFactor === Faces.SensorFace.Vertical
? implicitHeight
: -1
: Kirigami.Units.gridUnit
visible: root.showLegend
chart: compactRepresentation
sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null
......
......@@ -73,7 +73,7 @@ Faces.SensorFace {
Layout.minimumHeight: root.formFactor === Faces.SensorFace.Horizontal
|| root.formFactor === Faces.SensorFace.Vertical
? implicitHeight
: -1
: Kirigami.Units.gridUnit
visible: root.showLegend
chart: compactRepresentation.chart
sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null
......
Supports Markdown
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