# assistant2: Add scrollbar to active thread \(\#27534\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7b40ab30d7fb2bcface1c476f6a187dd0aa95efc

Requested commit: 7b40ab30d7fb2bcface1c476f6a187dd0aa95efc

Commit: 7b40ab30d7fb2bcface1c476f6a187dd0aa95efc

Tree: 1a25d894c37c9c65f28936680fc0ae4e73fb51ef

Author: Agus Zubiaga

Committer: GitHub

## Message

```
assistant2: Add scrollbar to active thread (#27534)

This required adding scrollbar support to `list`. Since `list` is
virtualized, the scrollbar height will change as more items are
measured. When the user manually drags the scrollbar, we'll persist the
initial height and offset calculations accordingly to prevent the
scrollbar from moving away from the cursor as new items are measured.

We're not doing this yet, but in the future, it'd be nice to budget some
time each frame to layout unmeasured items so that the scrollbar height
is as accurate as possible.

Release Notes:

- N/A
```

## Parents

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

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