From 556bc7c02208682f6fd160a8acd9684e3cb891c4 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Fri, 14 Apr 2023 11:57:02 +0200 Subject: [PATCH] Fix chat edit size to match height of lines. --- .../ui/modules/Common/Form/DroppableTextArea.qml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/linphone-app/ui/modules/Common/Form/DroppableTextArea.qml b/linphone-app/ui/modules/Common/Form/DroppableTextArea.qml index b36ce87cf..6b757a27a 100644 --- a/linphone-app/ui/modules/Common/Form/DroppableTextArea.qml +++ b/linphone-app/ui/modules/Common/Form/DroppableTextArea.qml @@ -9,6 +9,8 @@ import Common.Styles 1.0 import Utils 1.0 import UtilsCpp 1.0 +import 'qrc:/ui/scripts/Utils/utils.js' as Utils + // ============================================================================= Item { @@ -124,9 +126,10 @@ Item { // Text area. Item{ + id: textLayout Layout.fillWidth: true Layout.fillHeight: true - Layout.maximumHeight: parent.height-20 + Layout.maximumHeight: parent.height Layout.topMargin: 10 Layout.bottomMargin: 10 Layout.leftMargin: 2 @@ -145,15 +148,16 @@ Item { TextArea.flickable: TextArea { id: textArea onLineCountChanged: { - if(textArea.contentHeight+20