Handle images with incorrect (0, 0) size better
BUG: 460205 BUG: 460150
This commit is contained in:
@@ -37,9 +37,9 @@ TimelineContainer {
|
|||||||
id: img
|
id: img
|
||||||
|
|
||||||
Layout.maximumWidth: imageDelegate.contentMaxWidth
|
Layout.maximumWidth: imageDelegate.contentMaxWidth
|
||||||
Layout.maximumHeight: imageDelegate.contentMaxWidth / imageDelegate.info.w * imageDelegate.info.h
|
Layout.maximumHeight: imageDelegate.contentMaxWidth / sourceSize.width * sourceSize.height
|
||||||
Layout.preferredWidth: imageDelegate.info.w
|
Layout.preferredWidth: imageDelegate.info.w > 0 ? imageDelegate.info.w : sourceSize.width
|
||||||
Layout.preferredHeight: imageDelegate.info.h
|
Layout.preferredHeight: imageDelegate.info.h > 0 ? imageDelegate.info.h : sourceSize.height
|
||||||
source: model.mediaUrl
|
source: model.mediaUrl
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
|
|||||||
Reference in New Issue
Block a user