diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/qml/TextEditor.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml index b9d8763c..a662daa9 100644 --- a/framework/qml/TextEditor.qml +++ b/framework/qml/TextEditor.qml | |||
@@ -76,8 +76,8 @@ FocusScope { | |||
76 | flickable: flickableItem | 76 | flickable: flickableItem |
77 | } | 77 | } |
78 | 78 | ||
79 | contentWidth: edit.paintedWidth | 79 | contentWidth: Math.max(edit.paintedWidth, width) |
80 | contentHeight: edit.height | 80 | contentHeight: Math.max(edit.implicitHeight, height) |
81 | 81 | ||
82 | function ensureVisible(r) { | 82 | function ensureVisible(r) { |
83 | if (contentX >= r.x) { | 83 | if (contentX >= r.x) { |
@@ -96,8 +96,8 @@ FocusScope { | |||
96 | TextEdit { | 96 | TextEdit { |
97 | id: edit | 97 | id: edit |
98 | 98 | ||
99 | width: flickableItem.width | 99 | width: flickableItem.contentWidth |
100 | height: implicitHeight | 100 | height: flickableItem.contentHeight |
101 | 101 | ||
102 | focus: true | 102 | focus: true |
103 | selectByMouse: true | 103 | selectByMouse: true |