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

Fix images without size

parent baaa687d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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