Skip to content
Snippets Groups Projects
Verified Commit c0f41523 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix images without size not showing (take5)

parent c310e6f3
No related branches found
No related tags found
No related merge requests found
Pipeline #2652 passed
......@@ -19,7 +19,9 @@ Item {
required property string eventId
property double divisor: isReply ? 5 : 3
implicitWidth: Math.round(originalWidth*Math.min((timelineView.height/divisor)/(originalWidth*proportionalHeight), 1))
property int tempWidth: originalWidth < 1? 400: originalWidth
implicitWidth: Math.round(tempWidth*Math.min((timelineView.height/divisor)/(tempWidth*proportionalHeight), 1))
width: Math.min(parent.width,implicitWidth)
height: width*proportionalHeight
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment