# editor: Prevent overlapping of signature/hover popovers and context menus \(\#31090\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7450b788f3c4ce5bdbe30524501a0a83c5412059)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7450b788f3c4ce5bdbe30524501a0a83c5412059

Requested commit: 7450b788f3c4ce5bdbe30524501a0a83c5412059

Commit: 7450b788f3c4ce5bdbe30524501a0a83c5412059

Tree: a53f00af6c1c4c55c38d55938167eb00c1680de8

Author: smit

Committer: GitHub

## Message

```
editor: Prevent overlapping of signature/hover popovers and context menus (#31090)

Closes #29358

If hover popovers or signature popovers ever clash with the context menu
(like code completion or code actions), they find the best spot by
trying different directions around the context menu to show the popover.
If they can’t find a good spot, they just overlap with the context menu.

Not overlapping state:
<img width="350" alt="image"
src="https://github.com/user-attachments/assets/2f1bdc4c-eb01-405c-b5fb-eb28eadc9957"
/>

Overlapping case, moves popover to bottom of context menu:
<img width="350" alt="image"
src="https://github.com/user-attachments/assets/3ce4be23-7701-4711-b604-5e29682360e1"
/>

Overlapping case, moves popover to right of context menu:
<img width="350" alt="image"
src="https://github.com/user-attachments/assets/60d47518-e412-4d64-9d17-a69a17248bdf"
/> <img width="350" alt="image"
src="https://github.com/user-attachments/assets/2a3de176-7443-46d8-99d1-b2973a0ffaa6"
/>

Overlapping case, moves popover to left of context menu:
<img width="350" alt="image"
src="https://github.com/user-attachments/assets/015b799b-8c6e-4405-aee6-e205d4caebec"
/>

Overlapping case, moves popover to top of context menu:
<img width="350" alt="image"
src="https://github.com/user-attachments/assets/fbd03d84-9a49-44eb-846b-a9852d2ff43e"
/>

Release Notes:

- Fixed an issue where hover popovers or signature popovers would
overlap with existing opened completion or code actions context menus.
```

## Parents

- [0c035193932247c6dd4c596face55c91bdacc602](https://git.cafe/gitcafe/zed/commit/0c035193932247c6dd4c596face55c91bdacc602?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7450b788f3c4ce5bdbe30524501a0a83c5412059?format=markdown)
