1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-27 02:50:22 +03:00

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
This commit is contained in:
Michail Vourlakos 2021-11-21 20:31:41 +02:00
parent 2f01f8cb59
commit 4faa8f1a64

View File

@ -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