From 38490bf9fd301dd8c07a31c26d9ee141192ad84d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 13 Feb 2018 09:06:57 +0100 Subject: Fixed composer editor sizing. We still failed to make the composer large enough initially. --- framework/qml/TextEditor.qml | 8 ++++---- 1 file 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 { flickable: flickableItem } - contentWidth: edit.paintedWidth - contentHeight: edit.height + contentWidth: Math.max(edit.paintedWidth, width) + contentHeight: Math.max(edit.implicitHeight, height) function ensureVisible(r) { if (contentX >= r.x) { @@ -96,8 +96,8 @@ FocusScope { TextEdit { id: edit - width: flickableItem.width - height: implicitHeight + width: flickableItem.contentWidth + height: flickableItem.contentHeight focus: true selectByMouse: true -- cgit v1.2.3