# Fix scrollbar markers in large files \(\#10181\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3ae646386962afb99a803707d1fcc70643492d89

Requested commit: 3ae646386962afb99a803707d1fcc70643492d89

Commit: 3ae646386962afb99a803707d1fcc70643492d89

Tree: c6a034d0fc391ca3b92e816d5a68314ea3b88b29

Author: Andrew Lygin

Committer: GitHub

## Message

```
Fix scrollbar markers in large files (#10181)

#10080 introduced a minor change in how the min marker height is
enforced. Before the change, it was applied to the aggregated marker,
but after the change it's applied to each individual marker before
aggregation.

The difference is not noticeable on small files, where even single row
markers are higher than `MIN_MARKER_HEIGHT`, but it leads to visible
differences in large files with repeating blocks of highlighted and
not-highlighted blocks, like in [this
case](https://github.com/zed-industries/zed/pull/9080#issuecomment-2006796376).

This PR fixes how the `MIN_MARKER_HEIGHT` is applied.

Before the fix:

<img width="727" alt="zed-scroll-markers-before"
src="https://github.com/zed-industries/zed/assets/2101250/a1c34746-af4f-4054-8de2-edabf3db7cee">

After the fix:

<img width="736" alt="zed-scroll-markers-after"
src="https://github.com/zed-industries/zed/assets/2101250/b9ee843d-055e-42a6-af26-e7fd4f7729f8">


Release Notes:

- N/A

/cc @mrnugget
```

## Parents

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

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