# ui: Follow-up improvements to the scrollbar component \(\#38178\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4a582504d4aab388c6fa49ab74056e1a7eccfe94

Requested commit: 4a582504d4aab388c6fa49ab74056e1a7eccfe94

Commit: 4a582504d4aab388c6fa49ab74056e1a7eccfe94

Tree: 324f8ec89a8f8ae2bd0a33aa72a52178c79220ed

Author: Finn Evers

Committer: GitHub

## Message

```
ui: Follow-up improvements to the scrollbar component (#38178)

This PR lands some more improvements to the reworked scrollbars.

Namely, we will now explicitly paint a background in cases where a track
is requested for the specific scrollbar, which prevents a flicker, and
also reserve space only if space actually needs to be reserved. The
latter was a regression introduced by the recent changes.

Release Notes:

- N/A
```

## Parents

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

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