Commit c067d498 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[OSD] Fix ProgressBar potentially growing the dialog

Depending on font size and settings the ProgressBar's implicit size might be wider
than our minimum size of 15 gridUnit. This causes the Popup to change size when switching
from ProgressBar (e.g. changing volume) to Text (e.g. volume muted).

By setting preferredWidth to 1 we ensure we never exceed the overall minimum size
when the ProgressBar is shown.
parent 2f9e2dd6
......@@ -41,6 +41,8 @@ RowLayout {
PlasmaComponents3.ProgressBar {
id: progressBar
Layout.fillWidth: true
// So it never exceeds the minimum popup size
Layout.preferredWidth: 1
visible: rootItem.showingProgress
from: 0
to: 100
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