Bug 476542 - Long indicator text can overflow bounding box and overlap into adjacent icons inside System Tray
Summary: Long indicator text can overflow bounding box and overlap into adjacent icons...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Keyboard Layout widget (other bugs)
Version First Reported In: 5.27.8
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-04 10:32 UTC by postix
Modified: 2023-12-07 13:34 UTC (History)
3 users (show)

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


Attachments
Screenshot (62.29 KB, image/png)
2023-11-04 10:32 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2023-11-04 10:32:40 UTC
Created attachment 162856 [details]
Screenshot

SUMMARY

Having the layout indicator in the panel and choosing "latam" (Latin American Spanish), the "latam" text reaches into the adjacent icon as it becomes too long. Please see the screenshot.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Kernel Version: 6.5.8-200.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Andrey 2023-11-07 12:03:57 UTC
From personal conversation, Dr@i-glu4it.ru (Alexander) has some thoughts about fixing it.
Comment 2 Nate Graham 2023-11-09 20:36:28 UTC
Heh
Comment 3 Driglu4it 2023-11-24 20:56:09 UTC
To clarify, the problem only occurs when using the System Tray - Panel Icons Size - Small setting.
Without this setting and just in the panel (outside the tray), the plasmoid stretches as it should.
Comment 4 Andrey 2023-11-24 21:04:46 UTC
(In reply to postix from comment #0)
> Having the layout indicator in the panel and choosing "latam" (Latin
So we couldn't reproduce the problem with the applet placed in the panel directly, seems like the problem is only occurs with the applet placed inside systray, with Small Panel Icons Size setting.
Please confirm.
Comment 5 postix 2023-11-24 21:06:51 UTC
Yes, this issue is about the indicator in the systray.
Comment 6 Driglu4it 2023-11-24 21:48:53 UTC
There is a problem when using the System Tray - Small Icons setting:
When the size of a child (any widget) changes, the container itself does not change size, so the child widget overlaps its neighbors.
There are several options to solve the problem (specifically in this widget)
1. Send a signal to change the font size from the system tray to the widget.
2. Send a signal to system tray to resize when the child size changes.

Any suggestions are welcome!
Comment 7 Andrey 2023-11-24 22:53:16 UTC
(In reply to Driglu4it from comment #6)
> 1. Send a signal to change the font size from the system tray to the widget.
This seems like preferable variant, as:
- it corresponds to panels behavior
- it looks like the only widget with such problem, so it's better to fix it on it's side
- we can set minimal font size, after which if the widget continues to get smaller, the text will still overlap nearby items which looks like appropriate compromise for this case.
Please correct me if I put it wrongly.

Any advice how to achieve it is welcome.