Bug 518799 - Lateral fixed spacer uses wrong maximum value for width
Summary: Lateral fixed spacer uses wrong maximum value for width
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel Spacer widget (other bugs)
Version First Reported In: 6.6.4
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-11 00:50 UTC by gaby.bouca
Modified: 2026-10-22 21:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.9.0
Sentry Crash Report:


Attachments
screenshot with spectacle about the use of width as maximum for spacers on vertical panels (302.17 KB, image/png)
2026-04-11 00:50 UTC, gaby.bouca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gaby.bouca 2026-04-11 00:50:17 UTC
Created attachment 191435 [details]
screenshot with spectacle about the use of width as maximum for spacers on vertical panels

STEPS TO REPRODUCE
1. Create a vertical (lateral) panel
2. Add a Panel Spacer widget
3. Disable "Flexible size"
4. Try to increase the spacer size beyond the panel width value

OBSERVED RESULT
On a vertical panel, the spacer maximum is incorrectly capped at
the panel width value. The spacer uses the same parameter as
horizontal panels (width), which has a much smaller maximum than
the panel height.

EXPECTED RESULT
On a vertical panel, the spacer maximum should be based on the
panel height parameter, not the panel width. The parameter used
should match the panel orientation.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 43
KDE Plasma Version: 6.6.3

ADDITIONAL INFORMATION
On horizontal panels the width parameter is correct for the spacer
maximum. The bug only affects vertical (lateral) panels, where
height should be used instead.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 43
KDE Plasma Version: 6.6.3
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.3
Kernel Version: 6.19.11-200.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 8 GiB of RAM (7.5 GiB usable)
Graphics Processor 1: Intel® Iris® Xe Graphics
Graphics Processor 2: NVIDIA GeForce GTX 1650
Manufacturer: LENOVO
Product Name: 82MG
System Version: IdeaPad Gaming 3 15IHU6
Comment 1 TraceyC 2026-04-16 16:11:05 UTC
I can reproduce this on Plasma built from git-master, as well as 6.6.4
Also, the context menu says "Spacer width". On a vertical panel, it should be "Spacer height".
Comment 2 Bug Janitor Service 2026-10-22 10:02:17 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/4107
Comment 3 Niccolò Venerandi 2026-10-22 20:58:05 UTC
Git commit c4ba517adffa8ee1c85baef3d24a8821bd64860f by Niccolò Venerandi.
Committed on 22/10/2026 at 20:57.
Pushed by niccolove into branch 'master'.

containments/panel: Use the panel length as the spacer size limit

On a vertical panel, the size spinbox shown in edit mode for a
non-flexible Panel Spacer cannot go beyond the panel's thickness;
we instead use the panel length regardless of orientation.

M  +5    -3    containments/panel/ConfigOverlay.qml
M  +1    -1    containments/panel/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/c4ba517adffa8ee1c85baef3d24a8821bd64860f