Bug 386260

Summary: Tooltip of battery tray icon is wider when I move cursor from left to right
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: System TrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR    
Version: 5.11.95   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: demonstration

Description Patrick Silva 2017-10-27 17:16:58 UTC
Created attachment 108589 [details]
demonstration

plasma 5.11.2 on Arch.
The same tooltip has correct width when I move the cursor from right to left instead. My gif shows the issue.
Comment 1 Patrick Silva 2018-01-16 21:58:47 UTC
it affects plasma 5.12 beta on Arch Linux.
Comment 2 Kai Uwe Broulik 2018-01-17 11:15:12 UTC
There seems to be something funky going on when a tooltip does not have a sub text. I can also reproduce when moving from Printer (which has "queue empty" subtext) to device notifier which just says "no devices"
Comment 3 Kai Uwe Broulik 2018-01-26 14:50:51 UTC
Git commit f31e7860d98f3c66888f1102a7cf3c47f31e2a59 by Kai Uwe Broulik.
Committed on 26/01/2018 at 14:49.
Pushed by broulik into branch 'master'.

[Default Tooltip] Fix sizing

Unset the Label's default height which completely confuses the renderer either shifting the item vertically (e.g. when toggling
system tray popup), or letting it get too wide (e.g. when moving from a two-line tooltip to a one-line tooltip).
Also let the Layouts figure out sizing rather than trying to overrule it with flaky values.
Related: bug 389371

Differential Revision: https://phabricator.kde.org/D10077

M  +6    -6    src/declarativeimports/core/private/DefaultToolTip.qml

https://commits.kde.org/plasma-framework/f31e7860d98f3c66888f1102a7cf3c47f31e2a59