@@ -143,6 +143,29 @@ PreviewWidget {
143 TextArea {
143 TextArea {
144 id: reviewTextArea
144 id: reviewTextArea
145 objectName: "reviewTextArea"
145 objectName: "reviewTextArea"
147+ property var flickableItem: null;
148+ property bool inputMethodVisible: Qt.inputMethod.visible;
149+ onInputMethodVisibleChanged: {
150+ //A workaround to automatically move textArea up on u-touch
151+ if (inputMethodVisible && reviewTextArea.activeFocus) {
152+ var obj = root.parent.parent.parent;
153+ if (obj.objectName.indexOf("previewListRow") === 0) {
154+ flickableItem = obj;
156+ var textAreaPos = reviewSubmitContainer.mapToItem(flickableItem, 0, 0);
157+ var textAreaGlobalHeight = textAreaPos.y + reviewSubmitContainer.implicitHeight
158+ + flickableItem.height / 2.0;
160+ if (textAreaGlobalHeight > flickableItem.height) {
161+ flickableItem.contentY += textAreaGlobalHeight - flickableItem.height;
165+ flickableItem = null;
146 anchors {
169 anchors {
147 top: parent.top
170 top: parent.top
148 left: parent.left
171 left: parent.left