# editor: Align split buffer headers with scrollbar layout \(\#53782\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 96285fc14052525fee56e75f4b6e6d1f34352f8c

Requested commit: 96285fc14052525fee56e75f4b6e6d1f34352f8c

Commit: 96285fc14052525fee56e75f4b6e6d1f34352f8c

Tree: 715ee2028206c0d2795edccda77124dfb7d3b841

Author: Xiaobo Liu

Committer: GitHub

## Message

```
editor: Align split buffer headers with scrollbar layout (#53782)

Clip split buffer headers to the editor's content bounds so they no
longer paint into the horizontal scrollbar area.

Reuse the editor's computed right margin and horizontal scrollbar
visibility instead of reimplementing scrollbar detection in
split_editor_view. This keeps split headers aligned when minimap, inline
blame, or scrollbar visibility change the available content area.

Release Notes:

- Fixed horizontal scrollbars not being rendered behind buffer headers
in split editors

---------

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Co-authored-by: dino <dinojoaocosta@gmail.com>
```

## Parents

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

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