Skip to content

Commit

Permalink
Refactored anchors and sizes about the album cover component
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanPB committed Nov 2, 2019
1 parent 69b26f9 commit 8b76d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions plasma5-genial/contents/ui/AlbumCover.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Item {

Image {
id: img
sourceSize: Qt.size(root.parent.width, root.parent.height)
sourceSize: Qt.size(width, height)
smooth: true
visible: false
source: root.source
Expand All @@ -44,4 +44,4 @@ Item {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ AppRepresentation {
AlbumCover {
id: albumCover
source: trackDataContainer.albumCover
width: 256
height: 256
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter

anchors.fill: parent
}

DescriptionContainer {
Expand All @@ -51,7 +49,6 @@ AppRepresentation {
interval: active ? descriptionHolder.interval : 0
}


anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
}
Expand Down

0 comments on commit 8b76d3f

Please sign in to comment.