# gpui: Improve Anchored to support center position \(\#47154\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 84dcf38dbe9cd83fb8dcdaef76e70ef426b06849

Requested commit: 84dcf38dbe9cd83fb8dcdaef76e70ef426b06849

Commit: 84dcf38dbe9cd83fb8dcdaef76e70ef426b06849

Tree: 4c7f0a6cbef96175cef857b97b09ea364553d7d8

Author: Jason Lee

Committer: GitHub

## Message

```
gpui: Improve Anchored to support center position (#47154)

Release Notes:

- N/A

Ref https://github.com/longbridge/gpui-component/pull/1956 extract my
fork version of `anchored.rs` to let GPUI to support position Anchored
at center.


https://github.com/user-attachments/assets/8d0230ed-4b75-440b-b8c3-9bde3decd141

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
```

## Parents

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

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