|Summary:||Tooltips: text is clipped|
|Component:||general||Assignee:||Martin Sandsmark <martin.sandsmark>|
|Severity:||minor||CC:||alexeysakovets, glifwentry, justin.zobel, nate, postix|
|Latest Commit:||https://invent.kde.org/utilities/filelight/commit/248030dbdfcfae9ff493a443808af334a88174cd||Version Fixed In:||22.08|
The tooltip text is clipped near the end
Description ba-taha 2021-01-11 16:20:40 UTC
Created attachment 134743 [details] The tooltip text is clipped near the end SUMMARY Filelight's (Version 20.12.1) tooltips are sometimes incorrectly clipped, some locations do not suffer from this issue when mouse is placed over them, but the most affected files are located in the following directories: /usr, /opt, /lib STEPS TO REPRODUCE 1. Open Filelight 2. Navigate to /usr, /opt, /lib 3. Mouse over some locations OBSERVED RESULT Tooltips are clipped incorrectly EXPECTED RESULT Tooltip size should fit text SOFTWARE/OS VERSIONS Windows: N/A macOS: N/A Linux/KDE Plasma: 5.10.6-arch1-1 (available in About System) KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Long path names and short path names also have this issue
Comment 1 Justin Zobel 2021-01-15 01:08:51 UTC
Created attachment 134871 [details] Screenshot I'm unable to replicate this issue. See screenshot, my tooltip extends beyond the window to show the full path.
Comment 2 Mohammed Sameer 2021-03-17 07:37:45 UTC
I can reproduce the issue.
Comment 5 Justin Zobel 2021-03-17 07:42:58 UTC
Thanks for confirming.
Comment 6 Alexey Sakovets 2021-11-21 15:33:46 UTC
Created attachment 143804 [details] use-sizehint.patch
Comment 7 Alexey Sakovets 2021-11-21 15:35:07 UTC
Can confirm. use-sizehint.patch solves the issue for me.
Comment 8 Harald Sitter 2022-04-26 19:52:44 UTC
Git commit 248030dbdfcfae9ff493a443808af334a88174cd by Harald Sitter. Committed on 26/04/2022 at 19:45. Pushed by sitter into branch 'master'. correctly calculate fontmetrics - use the fontmetrics of the target label not the application (makes no difference but is practically more correct) - use horizontalAdvance instead of boundingrect width. the latter is relative to the rect coordinates and as such not nearly as straight forward to use. horizontaladvance is the actual width the text will occupy, it's what we intend to know here M +2 -2 src/radialMap/item.cpp https://invent.kde.org/utilities/filelight/commit/248030dbdfcfae9ff493a443808af334a88174cd