Fix/improve image sizes

This commit is contained in:
miruka
2019-11-05 09:19:48 -04:00
parent e4b784b407
commit 7408322fbe
6 changed files with 47 additions and 22 deletions

View File

@@ -156,15 +156,18 @@ HRowLayout {
Layout.leftMargin: pureMedia ? 0 : contentLabel.leftPadding
Layout.rightMargin: pureMedia ? 0 : contentLabel.rightPadding
Layout.minimumWidth:
type === EventDelegate.Media.Image ?
(singleMediaInfo.media_width ||
(item ? item.loadingLabel.implicitWidth : -1)) : -1
Layout.preferredWidth: item ? item.width : -1
Layout.preferredHeight: item ? item.height : -1
Layout.minimumHeight:
type === EventDelegate.Media.Image ?
(singleMediaInfo.media_height ||
(item ? item.loadingLabel.implicitHeight : -1)) : -1
// Layout.minimumWidth:
// type === EventDelegate.Media.Image ?
// (singleMediaInfo.media_width ||
// (item ? item.loadingLabel.implicitWidth : -1)) : -1
// Layout.minimumHeight:
// type === EventDelegate.Media.Image ?
// (singleMediaInfo.media_height ||
// (item ? item.loadingLabel.implicitHeight : -1)) : -1
// Layout.minimumWidth:
// type === EventDelegate.Media.File ?
@@ -179,8 +182,8 @@ HRowLayout {
// -1
Layout.maximumWidth: messageBodyWidth
Layout.maximumHeight: eventList.height / 2
// Layout.maximumWidth: messageBodyWidth
// Layout.maximumHeight: eventList.height / 2
}
}
}