diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-13 09:06:57 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-13 09:06:57 +0100 |
commit | 38490bf9fd301dd8c07a31c26d9ee141192ad84d (patch) | |
tree | ec8c034b9804916df81960fe4717931407424a25 /framework/qml | |
parent | 0365646737a1894ca6de94e8a9ad9dd6f28e0493 (diff) | |
download | kube-38490bf9fd301dd8c07a31c26d9ee141192ad84d.tar.gz kube-38490bf9fd301dd8c07a31c26d9ee141192ad84d.zip |
Fixed composer editor sizing.
We still failed to make the composer large enough initially.
Diffstat (limited to 'framework/qml')
-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 |