mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
Fix images without size not showing (take5)
This commit is contained in:
parent
c310e6f35c
commit
c0f415238d
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ Item {
|
||||||
required property string eventId
|
required property string eventId
|
||||||
property double divisor: isReply ? 5 : 3
|
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)
|
width: Math.min(parent.width,implicitWidth)
|
||||||
height: width*proportionalHeight
|
height: width*proportionalHeight
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue