Commit bc33a3a6 authored by Alexander Stippich's avatar Alexander Stippich

Avoid anchor loop in NavigationActionBar

Summary:
When opening albums in the albums view
containing cover art, Elisa was spitting
anchors loops and eventually crashed.
Since the image is in a layout, let it
scale the image and avoid the loop.

Reviewers: ngraham, mgallien

Reviewed By: ngraham

Tags: #elisa

Differential Revision: https://phabricator.kde.org/D23363
parent 6296f888
......@@ -119,15 +119,15 @@ ColumnLayout {
},
Item {
id: spacer
width: elisaTheme.layoutHorizontalMargin
Layout.preferredWidth: elisaTheme.layoutHorizontalMargin
visible: goPreviousButton.visible
},
Image {
id: mainIcon
source: image
height: authorAndAlbumLayout.height
width: height
Layout.preferredHeight: authorAndAlbumLayout.height
Layout.preferredWidth: height
sourceSize.height: height
sourceSize.width: width
fillMode: Image.PreserveAspectFit
......@@ -136,7 +136,7 @@ ColumnLayout {
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
},
Item {
width: elisaTheme.layoutHorizontalMargin
Layout.preferredWidth: elisaTheme.layoutHorizontalMargin
visible: mainIcon.visible
},
ColumnLayout {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment