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
Created attachment 159466 [details] Applet menu resized to its maximal horizontal size
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.
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.)
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.