# Use local overlay position mode and alignment · gitcafe/zed

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

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

Visibility: public

Requested revision: db73d831c774cd6174d780aedc131f3e70f04db7

Requested commit: db73d831c774cd6174d780aedc131f3e70f04db7

Commit: db73d831c774cd6174d780aedc131f3e70f04db7

Tree: 9f25050e41c10c0e299a140aea4d9c77c001bc13

Author: Petros Amoiridis

Committer: Petros Amoiridis

## Message

```
Use local overlay position mode and alignment

When we show the context menu, we don't specify an explicit position other than the default one which is equal to the origin in the context of a local overlay position mode. We then rely on `AnchorCorner` and aligning the context menu child view in the stack with `top().right()` for pop-ups that need to appear at the top of the icon/button.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>

```

## Parents

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

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