fix(ui/modules/Linphone/Chat/FileMessage): fix thumbnail size

This commit is contained in:
Ronan Abhamon 2017-06-13 13:10:26 +02:00
parent 9df5166ea4
commit 95628c7100
2 changed files with 4 additions and 8 deletions

View file

@ -108,8 +108,8 @@ Row {
Loader {
id: thumbnailProvider
Layout.preferredHeight: ChatStyle.entry.message.file.thumbnail.height
Layout.preferredWidth: ChatStyle.entry.message.file.thumbnail.width
Layout.fillHeight: true
Layout.preferredWidth: parent.height
sourceComponent: $chatEntry.thumbnail ? thumbnail : extension
@ -259,6 +259,7 @@ Row {
onMouseXChanged: handleMouseMove.call(this, mouse)
onMouseYChanged: handleMouseMove.call(this, mouse)
onExited: thumbnailProvider.state = ''
onClicked: {
// TODO: Handle open.

View file

@ -67,7 +67,7 @@ QtObject {
property int width: 250
property QtObject animation: QtObject {
property int duration: 300
property int duration: 200
property real to: 1.5
}
@ -97,11 +97,6 @@ QtObject {
}
}
}
property QtObject thumbnail: QtObject {
property int height: 50
property int width: 50
}
}
property QtObject images: QtObject {