Commit 2e4c0a96 authored by Sebastian Gottfried's avatar Sebastian Gottfried
Browse files

LegendItem: Fix behavior in when used in a layout

With now implicitWidth and implicitHeight set, it collapses to zero
size.
parent 2cd0baf7
......@@ -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
......
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