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

Amends c067d4985a.

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

(cherry picked from commit 2861d1fca3)
wilder-5.24
ivan tkachenko 4 years ago
parent 0d57626fff
commit b6d5966ce3
  1. 2
      lookandfeel/contents/osd/OsdItem.qml

@ -47,7 +47,7 @@ RowLayout {
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
// So it never exceeds the minimum popup size
Layout.preferredWidth: 1
Layout.minimumWidth: 0
Layout.rightMargin: PlasmaCore.Units.smallSpacing
visible: showingProgress
from: 0

Loading…
Cancel
Save