fixed most of the binding loops
This commit is contained in:
parent
5db7ec7f03
commit
0e548b7d39
7 changed files with 25 additions and 6 deletions
|
|
@ -17,13 +17,16 @@ Item {
|
|||
required property string filename
|
||||
required property bool isReply
|
||||
required property string eventId
|
||||
property double tempWidth: Math.min(parent.width, originalWidth < 1 ? 200 : originalWidth)
|
||||
property int maxWidth
|
||||
property double tempWidth: Math.min(maxWidth, originalWidth < 1 ? 200 : originalWidth)
|
||||
property double tempHeight: tempWidth * proportionalHeight
|
||||
property double divisor: isReply ? 5 : 3
|
||||
property bool tooHigh: tempHeight > timelineView.height / divisor
|
||||
|
||||
height: Math.round(tooHigh ? timelineView.height / divisor : tempHeight)
|
||||
width: Math.round(tooHigh ? (timelineView.height / divisor) / proportionalHeight : tempWidth)
|
||||
implicitHeight: height
|
||||
implicitWidth: width
|
||||
|
||||
Image {
|
||||
id: blurhash_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue