on xenial help sign in
More fixes
commitd536bede9bee8744c15795274e4e143f924bbfba authorAndrea Cimitan <andrea.cimitan@gmail.com> dateThu 1 May 2014, 15:18 (13 years ago) parent4e1cb58
1 file changed+6−1
qml/Dash/Previews/PreviewTextSummary.qml+6−1
qml/Dash/Previews/PreviewTextSummary.qml+6−1
@@ -28,7 +28,12 @@ import "../../Components"
2828
2929PreviewWidget {
3030 id: root
31− implicitHeight: seeMore.visible ? childrenRect.height : titleLabel.height + textLabel.height
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+ }
3237
3338 Label {
3439 id: titleLabel