fix(DroppableTextArea): fix style and add clip=true on Flickable

This commit is contained in:
Ronan Abhamon 2016-10-17 10:04:16 +02:00
parent 5e3e54848f
commit 6a9af0e040
3 changed files with 13 additions and 5 deletions

View file

@ -36,12 +36,20 @@ Item {
TextArea.flickable: TextArea {
id: textArea
background: Rectangle {
color: '#FFFFFF'
border.color: '#D0D8DE'
}
rightPadding: fileChooserButton.width +
fileChooserButton.anchors.rightMargin +
DroppableTextAreaStyle.fileChooserButton.margins
wrapMode: TextArea.Wrap
}
anchors.fill: parent
// Necessary, else `placeHolderText` can get out of the component.
clip: true
}
// Handle click to select files.

View file

@ -1,7 +1,7 @@
import QtQuick 2.7
import Common 1.0
import Linphone 1.0 /* It contains `Presence`. */
import Linphone 1.0
// ===================================================================

View file

@ -120,14 +120,14 @@ ColumnLayout {
}
}
Borders {
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: 70
borderColor: '#C7C7C7'
leftWidth: 1
Layout.preferredHeight: 80
color: '#E2E9EF'
DroppableTextArea {
anchors.fill: parent
anchors.margins: 10
placeholderText: qsTr('newMessagePlaceholder')
}
}