@@ -28,12 +28,7 @@ import "../../Components"
2828
2929PreviewWidget {
3030 id: root
31− implicitHeight: {
32− var tmpHeight = textLabel.height;
33− if (titleLabel.visible) tmpHeight += titleLabel.height;
34− if (seeMore.visible) tmpHeight += seeMore.height + seeMore.anchors.topMargin;
35− return tmpHeight;
36− }
31+ implicitHeight: childrenRect.height
3732
3833 Label {
3934 id: titleLabel
@@ -42,6 +37,7 @@ PreviewWidget {
4237 left: parent.left
4338 right: parent.right
4439 }
40+ height: visible ? implicitHeight : 0
4541 fontSize: "large"
4642 // TODO karni: Yet another fix requiring Palette update.
4743 color: "grey" //Theme.palette.selected.backgroundText
@@ -84,8 +80,9 @@ PreviewWidget {
8480 left: parent.left
8581 right: parent.right
8682 top: textLabel.bottom
87− topMargin: units.gu(1)
83+ topMargin: visible ? units.gu(1) : 0
8884 }
85+ height: visible ? implicitHeight : 0
8986 visible: textLabel.lineCount > textLabel.maximumCollapsedLineCount
9087 }
9188}