Cap height of send message box, and make it scrollable

This commit is contained in:
Devin Lin
2020-12-22 20:20:58 -05:00
committed by Carl Schwan
parent 93f35faf95
commit 8f348eb4fd

View File

@@ -284,6 +284,9 @@ ToolBar {
} }
ScrollView {
Layout.fillWidth: true
Layout.maximumHeight: inputField.lineHeight * 8
TextArea { TextArea {
id: inputField id: inputField
property real progress: 0 property real progress: 0
@@ -299,7 +302,7 @@ ToolBar {
} }
Layout.fillWidth: true property int lineHeight: contentHeight / lineCount
wrapMode: Text.Wrap wrapMode: Text.Wrap
placeholderText: i18n("Write your message...") placeholderText: i18n("Write your message...")
@@ -453,6 +456,7 @@ ToolBar {
documentHandler.replaceAutoComplete(autoCompleteListView.currentItem.displayText) documentHandler.replaceAutoComplete(autoCompleteListView.currentItem.displayText)
} }
} }
}
ToolButton { ToolButton {