Commit 370d391d authored by Fushan Wen's avatar Fushan Wen
Browse files

applets/mediacontroller: fix applet height in vertical panel


(cherry picked from commit 95883718)
parent f62b1277
Pipeline #237580 passed with stage
in 13 minutes and 15 seconds
......@@ -17,7 +17,8 @@ import org.kde.plasma.plasmoid 2.0
MouseArea {
id: compactRepresentation
Layout.preferredWidth: !inTray && !isVertical ? (iconLoader.active ? iconLoader.implicitWidth : playerRow.width) : -1
Layout.preferredWidth: !inTray && inPanel && !isVertical ? (iconLoader.active ? parent.height : playerRow.width) : -1
Layout.maximumHeight: !inTray && isVertical ? parent.width : -1
readonly property bool isVertical: Plasmoid.formFactor === PlasmaCore.Types.Vertical
readonly property bool inPanel: [PlasmaCore.Types.TopEdge, PlasmaCore.Types.RightEdge, PlasmaCore.Types.BottomEdge, PlasmaCore.Types.LeftEdge].includes(Plasmoid.location)
......
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