# Fix first/last item margin on scroll \(\#8880\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0b34b1de7b74cf14d5aa03e8bb71272adad98e40

Requested commit: 0b34b1de7b74cf14d5aa03e8bb71272adad98e40

Commit: 0b34b1de7b74cf14d5aa03e8bb71272adad98e40

Tree: b19fcb0b65216780839c592e3fbeac3949e0c3f5

Author: Jason Lee

Committer: GitHub

## Message

```
Fix first/last item margin on scroll (#8880)

![output](https://github.com/zed-industries/zed/assets/5518/e39a3600-99c4-4d3c-baee-efd53a474f38)

Before:

https://github.com/zed-industries/zed/assets/5518/f7a4563a-504a-4a41-bfd4-21e9439cd02b

After:

https://github.com/zed-industries/zed/assets/5518/0ba41527-46fd-404f-8207-1b8c5cf37434


Release Notes:

- Fixed first and last item margin when scroll view has padding
```

## Parents

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

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