Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
370d391d
Commit
370d391d
authored
Sep 28, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
applets/mediacontroller/contents/ui/CompactRepresentation.qml
View file @
370d391d
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment