Commit 2861d1fc authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[lookandfeel] Fix collapsed width of a volume/brightness OSD on a lock screen

Amends c067d498.

Having `preferredWidth: 1` set on an only item that also stretches with
fillWidth AND without top-to-bottom sizing (fixed size imposed by
parent component) doesn't really make sense. It naturally increased row
layout's implicitWidth by only 1, and that value were used as an input
to the final width expression (bottom-up sizing).

This patch fixes the sizing model to be strictly implicit bottom-up and
explicit top-down, and so the slider no longer collapses.

BUG: 446185
parent d56d8ab2
Pipeline #170766 passed with stage
in 5 minutes and 58 seconds
...@@ -49,7 +49,7 @@ RowLayout { ...@@ -49,7 +49,7 @@ RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
// So it never exceeds the minimum popup size // So it never exceeds the minimum popup size
Layout.preferredWidth: 1 Layout.minimumWidth: 0
Layout.rightMargin: PlasmaCore.Units.smallSpacing Layout.rightMargin: PlasmaCore.Units.smallSpacing
visible: showingProgress visible: showingProgress
from: 0 from: 0
......
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