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