Play m.image events GIFs, rename some properties

This commit is contained in:
miruka
2019-10-30 06:47:59 -04:00
parent b11c9d5675
commit 2e4a7904d5
4 changed files with 23 additions and 15 deletions

View File

@@ -140,7 +140,7 @@ HRowLayout {
model: eventDelegate.currentItem.links
EventMediaLoader {
info: eventDelegate.currentItem
singleMediaInfo: eventDelegate.currentItem
mediaUrl: modelData
transform: Translate { x: xOffset }
@@ -151,12 +151,12 @@ HRowLayout {
Layout.minimumWidth:
type === EventDelegate.Media.Image ?
(info.media_width ||
(singleMediaInfo.media_width ||
(item ? item.loadingLabel.implicitWidth : -1)) : -1
Layout.minimumHeight:
type === EventDelegate.Media.Image ?
(info.media_height ||
(singleMediaInfo.media_height ||
(item ? item.loadingLabel.implicitHeight : -1)) : -1
// Layout.minimumWidth: