Bug 421786

Summary: Dock expands beyond maximum length limit from appearance settings
Product: [Unmaintained] lattedock Reporter: AndyKluger
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal CC: AndyKluger
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description AndyKluger 2020-05-19 17:56:59 UTC
SUMMARY

I have a dock (bottom; centered; dodge active) with its maximum length set to 80%.

This limit is obeyed in 0.9.11, but the dock continues to expand well beyond it with r4190.cb368c50.

There are two plasmoids on the dock: Task Manager (not latte's), and virtual desktop bar.

STEPS TO REPRODUCE
1. create a dock (bottom; centered; dodge active) with its maximum length set to 80%
2. add Task Manager plasmoid (not latte's)
3. open enough windows to get the dock to grow past 80% of the screen width

OBSERVED RESULT

The dock continues to get longer, past 80% of the screen width, and past 100% of the screen width.

EXPECTED RESULT

The dock gets no longer than 80% of the screen width.

SOFTWARE/OS VERSIONS
latte-dock: r4190.cb368c50
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION

I'm attaching some screenshots, including ones made with 0.9.11 under the same conditions. The configuration files are already uploaded at https://bugs.kde.org/show_bug.cgi?id=421736
Comment 1 AndyKluger 2020-05-19 18:04:28 UTC
I had technical difficulties uploading the screenshots here, so I'm linking them:

https://imgur.com/a/DpZaZsS
Comment 2 Michail Vourlakos 2020-05-19 18:11:55 UTC
Git commit 949b2a4c3bbca3c535c4fd90241ee385523df5f9 by Michail Vourlakos.
Committed on 19/05/2020 at 18:09.
Pushed by mvourlakos into branch 'master'.

AutoFill applets must never exceed maxgivenspace

M  +5    -2    containment/package/contents/ui/applet/ItemWrapper.qml

https://invent.kde.org/plasma/latte-dock/commit/949b2a4c3bbca3c535c4fd90241ee385523df5f9
Comment 3 AndyKluger 2020-05-19 18:28:02 UTC
Excellent, thanks!