From faf5a715a1215041da6758a2cabeacb3cde3a94d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 5 Feb 2018 15:33:22 +0100 Subject: Use a height that takes the padding into account. --- framework/qml/TextEditor.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml index b009f7e5..b9d8763c 100644 --- a/framework/qml/TextEditor.qml +++ b/framework/qml/TextEditor.qml @@ -77,7 +77,7 @@ FocusScope { } contentWidth: edit.paintedWidth - contentHeight: edit.paintedHeight + contentHeight: edit.height function ensureVisible(r) { if (contentX >= r.x) { @@ -97,7 +97,7 @@ FocusScope { id: edit width: flickableItem.width - height: contentHeight + height: implicitHeight focus: true selectByMouse: true -- cgit v1.2.3