Bug 452142

Summary: Grouped task tooltip doesn't resize correctly in RTL environment
Product: [Plasma] plasmashell Reporter: Fushan Wen <qydwhotmail>
Component: Task Manager and Icons-Only Task ManagerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR Keywords: rtl
Version: master   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 5.25
Attachments: RTL tooltip.png

Description Fushan Wen 2022-04-01 08:43:03 UTC
Created attachment 147875 [details]
RTL tooltip.png

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Run `LANG=ar_GB plasmashell --replace`
2. Open many Konsole windows
3. Hover on any other task icon 
4. Hover on the Konsole task icon

OBSERVED RESULT
The tooltip doesn't resize to the screen's width

EXPECTED RESULT
Resize correctly like in LTR environment.

SOFTWARE/OS VERSIONS
Information for package plasma5-desktop:
----------------------------------------
Repository     : @System
Name           : plasma5-desktop
Version        : 5.24.80git.20220331T172116~f25987d05-ku.38.1
Arch           : x86_64
Vendor         : obs://build.opensuse.org/KDE:Unstable
Installed Size : 8.7 MiB
Installed      : Yes
Status         : up-to-date
Source package : plasma5-desktop-5.24.80git.20220331T172116~f25987d05-ku.38.1.src
Upstream URL   : http://www.kde.org/
Summary        : The KDE Plasma Workspace Components
Comment 1 Nate Graham 2022-04-11 19:53:14 UTC
Git commit 3121da66ffd69f329572d65fad7b480e9b598202 by Nate Graham, on behalf of Fushan Wen.
Committed on 11/04/2022 at 19:51.
Pushed by ngraham into branch 'master'.

taskmanager: Estimate the size of grouped tooltips

On Wayland, a tooltip has a significant resize process, so estimate the size first.

This also fixes the bug that in RTL environment, grouped task tooltips
don't resize correctly.

M  +8    -2    applets/taskmanager/package/contents/ui/ToolTipDelegate.qml

https://invent.kde.org/plasma/plasma-desktop/commit/3121da66ffd69f329572d65fad7b480e9b598202