Commit c0b97734 authored by Fushan Wen's avatar Fushan Wen
Browse files

applets/mediacontroller: fix incorrect `Layout.fillHeight` behavior

This makes the title and the artist labels vertically center aligned
again.


(cherry picked from commit a4c06ccc)
parent 935e2be8
Pipeline #237529 passed with stage
in 11 minutes and 46 seconds
......@@ -108,7 +108,6 @@ MouseArea {
ColumnLayout {
Layout.alignment: Qt.AlignVCenter
Layout.fillHeight: !inPanel || !isVertical
visible: !isVertical
spacing: 0
......@@ -117,12 +116,10 @@ MouseArea {
PC3.Label {
id: songTitle
Layout.fillHeight: true
Layout.fillWidth: true
Layout.maximumWidth: compactRepresentation.inPanel ? PlasmaCore.Units.gridUnit * 10 : -1
elide: Text.ElideRight
fontSizeMode: Text.VerticalFit
maximumLineCount: 1
text: root.track
textFormat: Text.PlainText
......@@ -133,13 +130,11 @@ MouseArea {
PC3.Label {
id: songArtist
Layout.fillHeight: true
Layout.fillWidth: true
Layout.maximumWidth: songTitle.Layout.maximumWidth
visible: root.artist
elide: Text.ElideRight
fontSizeMode: Text.VerticalFit
maximumLineCount: 1
text: root.artist
textFormat: Text.PlainText
......
Supports Markdown
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