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
That is true, perhaps we should try to move the widget to the left or right depending on which side we leave the widget.