diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-05 15:33:22 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-05 15:33:22 +0100 |
commit | faf5a715a1215041da6758a2cabeacb3cde3a94d (patch) | |
tree | f09cf78b320941f8682db71d483da44c53f0fc9f /framework/qml/TextEditor.qml | |
parent | e491f64146fda4f7d91259202fffffa59348a8a1 (diff) | |
download | kube-faf5a715a1215041da6758a2cabeacb3cde3a94d.tar.gz kube-faf5a715a1215041da6758a2cabeacb3cde3a94d.zip |
Use a height that takes the padding into account.
Diffstat (limited to 'framework/qml/TextEditor.qml')
-rw-r--r-- | framework/qml/TextEditor.qml | 4 |
1 files 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 { | |||
77 | } | 77 | } |
78 | 78 | ||
79 | contentWidth: edit.paintedWidth | 79 | contentWidth: edit.paintedWidth |
80 | contentHeight: edit.paintedHeight | 80 | contentHeight: edit.height |
81 | 81 | ||
82 | function ensureVisible(r) { | 82 | function ensureVisible(r) { |
83 | if (contentX >= r.x) { | 83 | if (contentX >= r.x) { |
@@ -97,7 +97,7 @@ FocusScope { | |||
97 | id: edit | 97 | id: edit |
98 | 98 | ||
99 | width: flickableItem.width | 99 | width: flickableItem.width |
100 | height: contentHeight | 100 | height: implicitHeight |
101 | 101 | ||
102 | focus: true | 102 | focus: true |
103 | selectByMouse: true | 103 | selectByMouse: true |