Bug 462926

Summary: When rotating the screen and reverting to original position, all widgets changed position and size
Product: [Plasma] plasmashell Reporter: cangrejopr <elcangrejopr>
Component: ContainmentAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, notmart
Priority: NOR    
Version First Reported In: 5.24.7   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description cangrejopr 2022-12-11 19:18:34 UTC
SUMMARY
All widgets placed on the desktop change position and size when changing the screen from landscape to portrait and back. For users or 2 in 1 laptops or tablets and constantly switch between landscape and portrait this becomes a big issue as sometimes widgets get placed over files and folders that are in the desktop and widgets have to constantly get reconfigured. Latte dock seems to be affected by this also as it shrinks in size when reverting to portrait.


STEPS TO REPRODUCE
1. Place widgets on the desktop (notes, photos, etc)
2. Go to settings > display and monitor > display configuration and change the orientation of the screen, then change the orientation back to normal position.
3. Go back to the desktop and see the widget position and size.

OBSERVED RESULT
All widgets will move to a different position and some change size. I noticed they tend to be pushed to the right edge of the screen. 

EXPECTED RESULT
Widget position and size should be remembered for portrait and landscape mode. 

SOFTWARE
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-56-generic (64-bit)

HARDWARE
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-8265U CPU @ 1.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION
I use an autorotate script to rotate the screen in the laptop, but also happens when manually changing the display orientation.
Comment 1 Nate Graham 2023-01-03 22:17:15 UTC
In newer versions of Plasma, the widget arrangements and positions are saved on a per-resolution and per-dimension basis. Because the dimensions change due to rotation, this will work the way you expect, once you use a newer version of Plasma.