Bug 470649 - Resizing applets menu to maximal size change its position
Summary: Resizing applets menu to maximal size change its position
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (other bugs)
Version First Reported In: 5.27.5
Platform: Neon Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-05 02:29 UTC by esperluette08
Modified: 2023-06-08 22:51 UTC (History)
2 users (show)

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


Attachments
Applet menu resized to its maximal horizontal size (413.88 KB, image/png)
2023-06-05 02:31 UTC, esperluette08
Details
The applet menu has been resized to its minimal width, but it will be positionned above system tray when re-opened. (535.36 KB, image/png)
2023-06-08 22:51 UTC, esperluette08
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esperluette08 2023-06-05 02:29:36 UTC
SUMMARY
When resizing the applets menu to it maximal size (or, tested on a VM with smaller screen size, resizing to the right edge of the screen), after closing then re-opening this menu, it's become horizontally aligned on screen (see attached screenshot).

It seems intentional because if nicely horizontally aligned (instead of still being aligned on the right side of the screen), but it allows to be resized from the right side of the menu, so it can be resized to be floating on left of the screen (then, after being closed and re-opened, it keeps its size but the positioned on right side of the screen again).


STEPS TO REPRODUCE
1. Open system tray "menu" (by clicking on sound volume system tray icon, for example)
2. Resize the menu to it's maximal horizontal size (from menu left edge), or on a small screen size, to the screen left edge
3. Close the menu.
4. Re-open the menu.

OBSERVED RESULT
The menu keeps the same size, but it's horizontally aligned on screen (instead of staying aligned on the right).
It's also possible to resize the menu from the right edge, resizing to its minimal size, but then it's floating on left side of the screen (this position is ignored once the menu is closed then re-opened, where the menu is aligned on screen right edge, again).

EXPECTED RESULT
The menu should always stay on the right edge of the screen, and couldn't be resized from its right side.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon Live (20230504-0714), Manjaro 23.0.0
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Graphics: X11 on Neon, Wayland on Manjaro
Comment 1 esperluette08 2023-06-05 02:31:39 UTC
Created attachment 159466 [details]
Applet menu resized to its maximal horizontal size
Comment 2 Nate Graham 2023-06-05 18:58:07 UTC
You were right: it is in fact intentional. There's logic to make a widget popup be centered on its panel if it *could* be centered while still 100% covering up the interactive area on the panel. Basically it's to let people emulate the Windows 11 style of a centered Start Menu when the thing you click on it o make it appear isn't itself centered, but would nonetheless appear underneath the popup if it was centered.

If you don't want this to happen for your System Tray popup, you'll need to not make it as large.
Comment 3 esperluette08 2023-06-08 22:49:32 UTC
Okay, that's what a thought since the menu is nicely horizontally aligned, but since I haven't use Windows for nearly twenty years, I'm not familiarized with the new centred Start Menu.

Also, resizing the menu from wide enough to be centred to not being aligned any more (below the width threshold, see second screenshot), the menu position is not remembered (and moved above system tray) when closed and re-opened.

But if it's not intentional, I can create another bug ticket. (Maybe the final (once re-opened) menu position could be shown the a tinted rectangle when resizing it, just like widgets when dragged from widget list, to preview its position when re-opened.)
Comment 4 esperluette08 2023-06-08 22:51:14 UTC
Created attachment 159549 [details]
The applet menu has been resized to its minimal width, but it will be positionned above system tray when re-opened.