[filelight] [Bug 487339] New: Filelight Tooltip Incorrect Offset when Displayed to the Right of the Mouse Cursor

Eamonn Rea bugzilla_noreply at kde.org
Tue May 21 20:59:28 BST 2024


https://bugs.kde.org/show_bug.cgi?id=487339

            Bug ID: 487339
           Summary: Filelight Tooltip Incorrect Offset when Displayed to
                    the Right of the Mouse Cursor
    Classification: Applications
           Product: filelight
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: eamonnrea at protonmail.com
                CC: martin.sandsmark at kde.org
  Target Milestone: ---

Created attachment 169689
  --> https://bugs.kde.org/attachment.cgi?id=169689&action=edit
Incorrect Tooltip Behaviour

SUMMARY
When the Filelight tooltip displays to the *right* of the mouse cursor (i.e.
when it has enough room to display on the right), then it displays very
slightly to the right and down of the mouse cursor, like a tooltip with some
padding.

But when the Filelight tooltip displays to the *left* of the mouse cursor, it
is offset, and the further to the *right* that the mouse cursor goes, the
further to the *left* that the tooltip goes. In other words moving the cursor
to the right of the window moves the tooltip *further away* from the cursor,
and moving it to the right moves the tooltip *closer to* the cursor. As it gets
closer it eventually has enough space to display to the right of the cursor
again and so fades back to being beside the cursor as described above, and
displays normally.

I have attached a screenshot of the offset tooltip.

STEPS TO REPRODUCE
1. Open Filelight
2. Move the cursor far enough to the right of the window so that the tooltip
appears on the left of the cursor - The window may need to be reduced in size
to make this easier to accomplish 
3. Observe tooltip being on the incorrect side of the window.

OBSERVED RESULT
Tooltip displays away from the mouse when to the left of the cursor.

EXPECTED RESULT
Tooltip behaves the same on the left side of the cursor as it does on the
right.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.9.1 Linux Zen
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
I don't remember this happening in Plasma 5.X, but unsure if it affected all
versions of Plasma 6.

I took a look at the code but wasn't sure why this was happening, I couldn't
find the logic that flips the tooltip.

I looked for other applications I have installed that use Kirigami which have
the same dynamic tooltips as Filelight but couldn't find any, I wanted to see
if they have the same behaviour and if not what they do on their side to fix
the problem. But I came up short.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list