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

Fix resize loop of images in reply popup

parent 0ade72e9
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@ Item {
property var inactiveColors: currentInactivePalette ? currentInactivePalette : systemInactive
property int avatarSize: 40
id: timelineRoot
Rectangle {
anchors.fill: parent
color: colors.window
......
......@@ -6,10 +6,10 @@ Item {
property double tempWidth: Math.min(parent ? parent.width : undefined, model.data.width)
property double tempHeight: tempWidth * model.data.proportionalHeight
property bool tooHigh: tempHeight > chat.height - 40
property bool tooHigh: tempHeight > timelineRoot.height / 2
height: tooHigh ? chat.height - 40 : tempHeight
width: tooHigh ? (chat.height - 40) / model.data.proportionalHeight : tempWidth
height: tooHigh ? timelineRoot.height / 2 : tempHeight
width: tooHigh ? (timelineRoot.height / 2) / model.data.proportionalHeight : tempWidth
Image {
id: img
......
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