Bug 477371 - Application menus / submenu options are outside the screen borders on small screens (1366x768)
Summary: Application menus / submenu options are outside the screen borders on small s...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: appmenu (show other bugs)
Version: 5.27.9
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2023-11-22 14:42 UTC by PG
Modified: 2023-11-29 22:52 UTC (History)
1 user (show)

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


Attachments
Images of submenu placement (437.88 KB, image/png)
2023-11-22 14:42 UTC, PG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PG 2023-11-22 14:42:02 UTC
Created attachment 163364 [details]
Images of submenu placement

On Wayland long submenus with many options in the submenus become too long to fit the screensize even if a scrollable submenu activates upon second time hover/clicking (upon first hover the submenus are somewhat placed differently or incompletely), the last options of those submenus remain outside the screen borders and are therefore not readable and therefore often not directly clickable. If one knows the option beforehand it can still be reached with keyboard arrows.
An example of those long submenus is LibreOffice "Tools" option, other software using the same menu framework behaves the same, therefore likely a QT configuration issue for smaller screens.

Platform details: 
   Fedora Linux 38
   KDE-Plasma-Version: 5.27.9
   KDE-Frameworks-Version: 5.111.0
   Qt-Version: 5.15.11
   Wayland

STEPS TO REPRODUCE
1. Screen size of 1366x768
2. (I have a thin top bar and bottom bar but does not really matter just reduces the screen height more)
3. Toggle submenus in LibreOffice (Tools option for example)
4. See menus are outside the screen borders
5. Also upon first hovering or clicking of a submenu the first entry is placed directly next to the pointer, upon second hover/clicking it submenu uses entire screen height an centers vertically next to the pointer (Feedback/Enhancement: It would be better to have the second become default with long menus for user experience)

OBSERVED RESULT
Submenu options are outside the screen borders

EXPECTED RESULT
Submenu stays within the visible screen real estate and becomes scrollable within those borders

SOFTWARE/OS VERSIONS
Platform details: 
   Fedora Linux 38
   KDE-Plasma-Version: 5.27.9
   KDE-Frameworks-Version: 5.111.0
   Qt-Version: 5.15.11
   Wayland

ADDITIONAL INFORMATION