zed icon indicating copy to clipboard operation
zed copied to clipboard

JSDoc: Documentation when hovering the element to see docs not well positioned

Open BrianIto opened this issue 11 months ago • 0 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

When hovering a not used class, method or anything else in JavaScript or related (svelte, react, nodejs, etc) the positioning of the hint is overflowing it to top. (Figure 1) It works when it's really close to top, (Figure 2) but when scrolled down it doesn't work as expected.

This happens beacuse the "js: value is never read" is maybe positioned on top. And only when it doesnt fit above he goes down. If I use the value the "js: value is never read" goes away and then the hint position itself normally.

Environment

Zed: v0.123.6 (Zed) OS: macOS 14.2.1 Memory: 8 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Figure 1 👇 Captura de Tela 2024-02-25 às 12 34 17

Figure 2 👇 Captura de Tela 2024-02-25 às 12 39 38

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

BrianIto avatar Feb 25 '24 16:02 BrianIto