diff --git a/src/timeline/ImageComponent.qml b/src/timeline/ImageComponent.qml index bed8921dc..e157a85df 100644 --- a/src/timeline/ImageComponent.qml +++ b/src/timeline/ImageComponent.qml @@ -187,7 +187,7 @@ Item { MediaSizeHelper { id: mediaSizeHelper contentMaxWidth: root.Message.maxContentWidth - contentMaxHeight: root.contentMaxHeight + contentMaxHeight: root.contentMaxHeight ?? -1 mediaWidth: root?.mediaInfo.isSticker ? 256 : (root?.mediaInfo.width ?? 0) mediaHeight: root?.mediaInfo.isSticker ? 256 : (root?.mediaInfo.height ?? 0) }