summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-10-28 08:57:01 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-10-29 00:23:58 (GMT)
commit46bcfe78c17e35c378b7788fdd8dcd0f38ade9f0 (patch)
tree786b46fb899a110f475f39d24f018d0e1a2aef9f /tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
parentd1b0b364fc2c944ec5cf67ed9a3282881f4c324c (diff)
downloadQt-46bcfe78c17e35c378b7788fdd8dcd0f38ade9f0.zip
Qt-46bcfe78c17e35c378b7788fdd8dcd0f38ade9f0.tar.gz
Qt-46bcfe78c17e35c378b7788fdd8dcd0f38ade9f0.tar.bz2
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 c987568..fd29eb6 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