Bug 511240 - Layout.preferredWidth and Height not working in Tiled Menu widget after update
Summary: Layout.preferredWidth and Height not working in Tiled Menu widget after update
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.4.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-10-27 20:27 UTC by Johan Wauters
Modified: 2025-11-24 20:06 UTC (History)
6 users (show)

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


Attachments
The tiles on the right side are invisible - Menu width is not expanding to right side after a reboot (386.87 KB, image/png)
2025-10-27 20:27 UTC, Johan Wauters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Wauters 2025-10-27 20:27:24 UTC
Created attachment 186243 [details]
The tiles on the right side are invisible - Menu width is not expanding to right side after a reboot

SUMMARY
Tiled menu Plasmoid - updated for plasma 6+

Full plasmoid here:
https://github.com/user-attachments/files/23172548/com.github.JohanW1977.tiledmenu.zip

STEPS TO REPRODUCE
1.  upzip into the plasmoid directory and add widget to menubar
2. add tiles
3. click upperleft on tiles only / alphabetical / cathegories > the widget resizes !
4. reboot PC
5. click upperleft on tiles only / alphabetical / cathegories > the widget doesn't resize anymore !

code responsible for resizing in fullrepresentation:

	readonly property var appletInterface: Plasmoid

	Layout.minimumWidth: config.leftSectionWidth
	Layout.minimumHeight: config.minimumHeight
	Layout.preferredWidth: config.popupWidth
	Layout.preferredHeight: config.popupHeight

OBSERVED RESULT
> Plasmoid resizes before reboot
> Plasmoid doesn't resize after reboot

EXPECTED RESULT
> Plasmoid should keep resizing

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Fedora KDE
KDE Plasma Version:  6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-10-27 20:39:47 UTC
Can reproduce, but I'm not totally sure what's supposed to happen here instead. The layout is a bit messy and everything is huge. Even if something changed in Plasma, it seems this eidget could use some code cleanup.
Comment 2 Johan Wauters 2025-10-27 20:56:15 UTC
I actually have 4 screenshots, but I could only upload one.
I uploaded them here. Hope It's clear now:

https://discuss.kde.org/t/making-a-plasmoid-resizable-in-plasma-6/40254
Comment 3 Johan Wauters 2025-11-08 20:44:03 UTC
The issue's origin is in the configuration file, located in the .config directory.

 [Containments][66][Applets][104][Configuration]
Right here popupHeight and popupWidth are automatically stored when a plasmoid changes size.

[Containments][66][Applets][104][Configuration][General] stores the actual width and height

AN option to disable or override  the [Configuration] settings should fix this problem
Comment 4 Johan Wauters 2025-11-24 20:06:01 UTC
[Containments][66][Applets][105][Configuration]
PreloadWeight=100
popupHeight=561
popupWidth=812

popupHeight and popuopWidth are both written by plasma to <homedir>/.config/plasma-org.kde.plasma.desktop-appletsrc

Before the reboot you can modify them both with javascript in main.qml (or even delete them)

But at reboot these values are written to the config.
After reboot they are written to the PCs memory, so modifying them on disc  is useless.

We need a variable in plasma-org.kde.plasma.desktop-appletsrc that override both settings so that resizing the plasmoid is possible.

Only way to keep is working is manually delete both keys in plasma-org.kde.plasma.desktop-appletsrc and immediatly reboot.