mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Fix images without size
This commit is contained in:
parent
baaa687d33
commit
a071f55c7b
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import QtQuick 2.6
|
|||
import im.nheko 1.0
|
||||
|
||||
Item {
|
||||
property double tempWidth: Math.min(parent ? parent.width : undefined, model.data.width)
|
||||
property double tempWidth: Math.min(parent ? parent.width : undefined, model.data.width < 1 ? parent.width : model.data.width)
|
||||
property double tempHeight: tempWidth * model.data.proportionalHeight
|
||||
|
||||
property bool tooHigh: tempHeight > timelineRoot.height / 2
|
||||
|
|
Loading…
Reference in a new issue