Bug 503143 - Gap between menus in Application Menu (1st and 2nd level) with larger-than-default font size and specific languages in use
Summary: Gap between menus in Application Menu (1st and 2nd level) with larger-than-de...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) widget (other bugs)
Version First Reported In: 6.3.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 495266 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-04-21 21:06 UTC by Alexander Potashev
Modified: 2025-06-06 22:02 UTC (History)
3 users (show)

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


Attachments
screenshot ru_RU (251.78 KB, image/png)
2025-04-21 21:06 UTC, Alexander Potashev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2025-04-21 21:06:47 UTC
Created attachment 180499 [details]
screenshot ru_RU

SUMMARY
Gap between menus in Application Menu.

STEPS TO REPRODUCE
1. (optional) Change widget configuration to frequency-based lists and recency-based lists.
2. 
3. 

OBSERVED RESULT
Gap between menu and any of the submenus, see screenshot.

EXPECTED RESULT
No gap.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.13.11-200.fc41.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.4 ГиБ of RAM
Graphics Processor 1: Intel® HD Graphics 530
Graphics Processor 2: NVIDIA GeForce GTX 960M

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-04-22 15:37:43 UTC
Does it happen on Wayland too? Or only on X11?
Comment 2 Alexander Potashev 2025-04-22 22:07:44 UTC
Same problem on Wayland.
Comment 3 Bug Janitor Service 2025-05-07 03:47:04 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 John Kizer 2025-05-14 07:02:25 UTC
I was able to reproduce this on a Neon VM by increasing the font size used in the menu to 13, with Russian as the interface language. Thanks!
Comment 5 Nate Graham 2025-05-14 16:57:32 UTC
Possibly fallout from Bug 493687. Needs investigation.
Comment 6 Bug Janitor Service 2025-05-27 08:48:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3022
Comment 7 cwo 2025-05-27 14:11:44 UTC
*** Bug 495266 has been marked as a duplicate of this bug. ***
Comment 8 cwo 2025-05-27 18:15:49 UTC
Git commit 6c7336ba2cb6607672d50fa5bee2ba9ac6e6e232 by Christoph Wolk.
Committed on 27/05/2025 at 17:50.
Pushed by cwo into branch 'master'.

applets/kicker: elide long primary menu names

Kicker has some logic to set minimum and maximum widths for the list
delegates, and elides the string if it's longer than the minimum length.
This works well for submenus, as Plasma dialog will resize when needed.
But the fullRepresentation popup will not resize automatically, it's
restricted to the size it has (and also cannot be resized by the user).
If a menu name does not fit, the delegate is clipped at the
representation's edge, but the delegate continues, and any popup from
there will start after the delegate's real (invisible) end leading to
bizarre gaps.

Instead, set the maximum size to the minimum size for the main menu
representation. The submenus still resize as normal.

M  +1    -0    applets/kicker/package/contents/ui/MenuRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/6c7336ba2cb6607672d50fa5bee2ba9ac6e6e232
Comment 9 cwo 2025-05-27 18:46:24 UTC
Git commit 81392d015732515aa99bfa52107962830255e33d by Christoph Wolk.
Committed on 27/05/2025 at 18:30.
Pushed by cwo into branch 'Plasma/6.4'.

applets/kicker: elide long primary menu names

Kicker has some logic to set minimum and maximum widths for the list
delegates, and elides the string if it's longer than the minimum length.
This works well for submenus, as Plasma dialog will resize when needed.
But the fullRepresentation popup will not resize automatically, it's
restricted to the size it has (and also cannot be resized by the user).
If a menu name does not fit, the delegate is clipped at the
representation's edge, but the delegate continues, and any popup from
there will start after the delegate's real (invisible) end leading to
bizarre gaps.

Instead, set the maximum size to the minimum size for the main menu
representation. The submenus still resize as normal.


(cherry picked from commit 6c7336ba2cb6607672d50fa5bee2ba9ac6e6e232)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

M  +1    -0    applets/kicker/package/contents/ui/MenuRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/81392d015732515aa99bfa52107962830255e33d