Bug 499779 - QMenus have unnecessarily large padding on the right side to accommodate sub-menu arrows, even when the menu has no sub-menus
Summary: QMenus have unnecessarily large padding on the right side to accommodate sub-...
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (show other bugs)
Version: 6.3.0
Platform: Other Other
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-10 21:01 UTC by Andres Betts
Modified: 2025-02-19 16:26 UTC (History)
4 users (show)

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


Attachments
menulength (92.61 KB, image/png)
2025-02-10 21:01 UTC, Andres Betts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Betts 2025-02-10 21:01:51 UTC
Created attachment 178126 [details]
menulength

In our current version of Plasma we have menus that seem to have additional reserved space for menu items that are not there. Particularly in combinations such as this:

| Item Name | --------- |Shortcut | --- > |

(Dashes are spaces)

In menus where there is no presence of sub menus, the space is reserved nonetheless, making the menu unnecessarily wider. Like this:

| Item Name | --------- |Shortcut --- |

I have attached an image showing the visual discrepancy. Ideally, the system should be able to adapt to the length of visible items. This issue seems to be generalized on all menus.
Comment 1 Nate Graham 2025-02-19 16:26:30 UTC
Can confirm. It's leaving space for showing arrows to indicate sub-menus, even when the menu has no sub-menus.