@@ -70,15 +70,17 @@ PreviewWidget {
70 left: parent.left
70 left: parent.left
71 right: parent.right
71 right: parent.right
73− implicitHeight: rating.height
73+ implicitHeight: ratingLabel.height + rating.height
74 visible: widgetData["visible"] !== "review"
74 visible: widgetData["visible"] !== "review"
77 objectName: "ratingLabel"
78 objectName: "ratingLabel"
79− verticalCenter: parent.verticalCenter
80 left: parent.left
80 left: parent.left
82 color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
84 color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
83 opacity: .8
85 opacity: .8
84 text: widgetData["rating-label"] || i18n.tr("Rate this")
86 text: widgetData["rating-label"] || i18n.tr("Rate this")
@@ -88,8 +90,8 @@ PreviewWidget {
88 id: rating
90 id: rating
89 objectName: "rating"
91 objectName: "rating"
91− verticalCenter: parent.verticalCenter
93+ top: ratingLabel.bottom
92− right: parent.right
94+ left: parent.left
95 onValueChanged: {
97 onValueChanged: {
@@ -103,7 +105,7 @@ PreviewWidget {
105 id: reviewContainer
107 id: reviewContainer
106− implicitHeight: reviewLabel.implicitHeight + reviewSubmitContainer.implicitHeight + anchors.topMargin
108+ implicitHeight: reviewSubmitContainer.implicitHeight + anchors.topMargin
108 readonly property real innerMargin: units.gu(1)
110 readonly property real innerMargin: units.gu(1)
@@ -126,19 +128,6 @@ PreviewWidget {
130− objectName: "reviewLabel"
137− color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
139− text: widgetData["review-label"] || i18n.tr("Add a review")
143 id: reviewSubmitContainer
132 id: reviewSubmitContainer
144 anchors {
133 anchors {
@@ -164,6 +153,7 @@ PreviewWidget {
164 right: submitButton.left
153 right: submitButton.left
165 rightMargin: reviewContainer.innerMargin
154 rightMargin: reviewContainer.innerMargin
156+ placeholderText: widgetData["review-label"] || i18n.tr("Add a review")