Bug 485211 - New LSP function parameter tooltip hangs off the screen
Summary: New LSP function parameter tooltip hangs off the screen
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-08 02:54 UTC by Grósz Dániel
Modified: 2024-12-10 20:14 UTC (History)
1 user (show)

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


Attachments
Screenshot (329.43 KB, image/png)
2024-04-08 02:54 UTC, Grósz Dániel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grósz Dániel 2024-04-08 02:54:28 UTC
Created attachment 168270 [details]
Screenshot

SUMMARY
The new function parameter tooltip is nice, but part of it is invisible when the cursor is near the right edge of the screen. See screenshot.

As shown in the screenshot, even the completion list slightly hangs off the screen: it opens at the right edge of the screen, but after half a second (perhaps after LSP suggestions are loaded or when the function parameter popup is opened) it grows slightly bigger, while its location (top left corner) doesn't change.

STEPS TO REPRODUCE
1. Move the cursor near the opening parenthesis of a function call in a program with LSP support. Make it so that this opening parenthesis is near the right edge of the screen.
2. Press Ctrl+Space.

OBSERVED RESULT
The function parameter tooltip is opened with its left edge at the cursor, and part of it is cut off if the popup is sufficiently wide. Half of the completion list's scrollbar is also cut off (perhaps depending on the available suggestions?).

EXPECTED RESULT
The tooltip and the completion list are shifted to the left, such that they are fully visible and their right edge aligns with the screen's edge.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240404
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.8.2-1-default (64-bit)
Graphics Platform: X11
Comment 1 Christoph Cullmann 2024-12-10 20:13:56 UTC
That is true, perhaps we should try to move the widget to the left or right depending on which side we leave the widget.