summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Gottfried <sebastian.gottfried@posteo.de>2016-11-22 08:44:18 (GMT)
committerSebastian Gottfried <sebastian.gottfried@posteo.de>2016-11-22 08:44:18 (GMT)
commit2e4c0a96eca311da4e7335f9ee06fa77a819ca05 (patch)
treeec8fae25cba5af7c2a17f2ba90138df0dfd74588
parent2cd0baf7eea44c9ee25f454b9ecced65346f987a (diff)
LegendItem: Fix behavior in when used in a layout
With now implicitWidth and implicitHeight set, it collapses to zero size.
-rw-r--r--src/qml/LegendItem.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/LegendItem.qml b/src/qml/LegendItem.qml
index 5ca724b..9f45ac2 100644
--- a/src/qml/LegendItem.qml
+++ b/src/qml/LegendItem.qml
@@ -38,8 +38,8 @@ Item {
*/
property alias textColor: label.color
- height: label.height
- width: box.width + label.width + 5
+ implicitHeight: label.height
+ implicitWidth: box.width + label.width + 5
Rectangle {
id: box