summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-13 09:06:57 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-13 09:06:57 +0100
commit38490bf9fd301dd8c07a31c26d9ee141192ad84d (patch)
treeec8c034b9804916df81960fe4717931407424a25 /framework
parent0365646737a1894ca6de94e8a9ad9dd6f28e0493 (diff)
downloadkube-38490bf9fd301dd8c07a31c26d9ee141192ad84d.tar.gz
kube-38490bf9fd301dd8c07a31c26d9ee141192ad84d.zip
Fixed composer editor sizing.
We still failed to make the composer large enough initially.
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/TextEditor.qml8
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