Simplify implicitHeight binding a bit.
commit6cf354e47b51ac9feeeb915f73349f87ec47a0a2
authorMirco Müller <mirco.mueller@canonical.com>
dateTue 14 Oct 2014, 12:07 (12 years ago)
parent2a64016
qml/Notifications/Notification.qml+1−1
@@ -49,7 +49,7 @@ Item {
4949 readonly property real contentSpacing: units.gu(2)
5050
5151 objectName: "background"
52− implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : outterColumn.height - (type === Notification.Confirmation ? units.gu(.5) : 0) + contentSpacing * 2) : 0
52+ implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : outterColumn.height - shapedBack.anchors.topMargin + contentSpacing * 2) : 0
5353
5454 color: (type === Notification.Confirmation && notificationList.useModal && !greeter.shown) || darkOnBright ? sdLightGrey : Qt.rgba(0.132, 0.117, 0.109, 0.97)
5555 opacity: 1 // FIXME: 1 because of LP: #1354406 workaround, has to be 0 really