From eb6ae017fe0e296ecf8d05910173a48371175fce Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 21 Nov 2021 20:31:41 +0200 Subject: [PATCH] ignore maxlength=0 for fill lenght applets --fix mediacontroller_plus applet scenario by ignoring maximum width = 0 that qt is already doing for Layouts that fill length. BUG:445869 --- .../contents/ui/abilities/privates/LayouterPrivate.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/containment/package/contents/ui/abilities/privates/LayouterPrivate.qml b/containment/package/contents/ui/abilities/privates/LayouterPrivate.qml index 4a9eadb59..3ca59065e 100644 --- a/containment/package/contents/ui/abilities/privates/LayouterPrivate.qml +++ b/containment/package/contents/ui/abilities/privates/LayouterPrivate.qml @@ -88,7 +88,10 @@ Item { minSize = minSize>=0 && minSize!==Infinity ? minSize : -1; prefSize = minSize>=0 && prefSize!==Infinity ? prefSize : -1; - maxSize = maxSize>=0 && maxSize!== Infinity ? maxSize : -1; + + //! Qt ignores maximumlength=0 for applets that have set Layout.fillLength flag + //! this was tracked through bug #445869, mediacontroller_plus applet case + maxSize = maxSize>0 && maxSize!== Infinity ? maxSize : -1; var appliedSize = -1; //! check if the applet does not provide any valid metrics and for that case