@@ -83,6 +83,8 @@ Column {
8383 height: units.gu(4)
8484 verticalAlignment: Text.AlignVCenter
8585
86+ Behavior on height { UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration } }
87+
8688 onFocusChanged: {
8789 if(reviewField.focus){
8890 root.state = "editing";
@@ -94,9 +96,10 @@ Column {
9496 if (reviewField.text == "") {
9597 root.state = "";
9698 reviewField.focus = false;
97− } else if (reviewField.lineCount > 1 && reviewField.lineCount < 6) {
98− reviewField.height = units.gu(3) * reviewField.lineCount;
99− } else if (reviewField.lineCount == 1) {
99+ } else if (reviewField.lineCount > 1) {
100+ reviewField.height = reviewField.contentHeight;
101+ }
102+ if (reviewField.lineCount == 1) {
100103 reviewField.height = units.gu(4);
101104 }
102105 }
@@ -115,13 +118,15 @@ Column {
115118 id: sendButton
116119 objectName: "sendButton"
117120 width: units.gu(10)
118− height: reviewField.height
121+ height: units.gu(4)
122+ anchors.bottom: reviewField.bottom
119123 color: Theme.palette.selected.foreground
120124 text: i18n.tr("Send")
121125 opacity: 0
122126
123127 onClicked: {
124128 root.sendReview(reviewField.text);
129+ reviewField.text = ""
125130 }
126131 }
127132 }