Fix images without size

This commit is contained in:
Nicolas Werner 2020-03-08 14:39:01 +01:00
parent baaa687d33
commit a071f55c7b
1 changed files with 1 additions and 1 deletions

View File

@ -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