summaryrefslogtreecommitdiff
path: root/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-10-28 18:57:01 +1000
committerAlan Alpert <alan.alpert@nokia.com>2010-10-29 10:23:58 +1000
commit46bcfe78c17e35c378b7788fdd8dcd0f38ade9f0 (patch)
tree786b46fb899a110f475f39d24f018d0e1a2aef9f /tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
parentd1b0b364fc2c944ec5cf67ed9a3282881f4c324c (diff)
downloadqt4-tools-46bcfe78c17e35c378b7788fdd8dcd0f38ade9f0.tar.gz
Cleanup qmlvisual/qdeclarativetextedit tests
Platform visuals and working again after a long period of neglect Task-number: QTBUG-14792
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml b/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
index c98756894e..fd29eb6972 100644
--- a/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
+++ b/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
@@ -36,9 +36,10 @@ Item {
if(cursorRectangle.y < topMargin - textEdit.y){//Cursor went off the front
textEdit.y = topMargin - Math.max(0, cursorRectangle.y);
}else if(cursorRectangle.y > parent.height - topMargin - bottomMargin - textEdit.y){//Cursor went off the end
- textEdit.y = topMargin - Math.max(0, cursorRectangle.y - (parent.height - topMargin - bottomMargin)) - cursorRectangle.height;
+ textEdit.y = topMargin - Math.max(0, cursorRectangle.y - (parent.height - topMargin - bottomMargin) + cursorRectangle.height);
}
}
+ onHeightChanged: y=topMargin//reset scroll
text:""
horizontalAlignment: TextInput.AlignLeft