on xenial help sign in
review stuff
commit1200739ca9e0bf456e29363b3b12c0c743eca611 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateThu 6 Feb 2014, 10:23 (13 years ago) parent0ba0a56
2 files changed+3−4
qml/Dash/Previews/PreviewTextSummary.qml+1−1 tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml+2−3
qml/Dash/Previews/PreviewTextSummary.qml+1−1
@@ -28,7 +28,7 @@ import "../../Components"
2828
2929PreviewWidget {
3030 id: root
31− implicitHeight: titleLabel.visible ? titleLabel.height + textLabel.height : textLabel.height
31+ implicitHeight: childrenRect.height
3232
3333 Label {
3434 id: titleLabel
tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml+2−3
@@ -65,13 +65,12 @@ Rectangle {
6565
6666 // verify titleLabel is visible and textLabel is anchored below it
6767 compare(titleLabel.visible, true)
68− var mappedTextLabel = root.mapFromItem(textLabel, 0, 0)
69− compare(mappedTextLabel.y, titleLabel.height)
68+ compare(textLabel.y, titleLabel.height)
7069
7170 // verify titleLabel disappears and textLabel moves up
7271 previewTextSummary.widgetData = widgetDataNoTitle
7372 compare(titleLabel.visible, false)
74− verify(mappedTextLabel.y, 0)
73+ compare(textLabel.y, 0)
7574 }
7675
7776 function test_see_more() {