# settings_ui: Fix scrollbar breaking when UI font size changes \(\#45099\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bbb3d515fba86d9bdf65adc863028d0ba6450745

Requested commit: bbb3d515fba86d9bdf65adc863028d0ba6450745

Commit: bbb3d515fba86d9bdf65adc863028d0ba6450745

Tree: 494a1b2cf1d6dcb4d57399beaf9b2e34c1f20d04

Author: Dino

Committer: GitHub

## Message

```
settings_ui: Fix scrollbar breaking when UI font size changes (#45099)

When the UI font size changes, the settings window's scrollbar would
break because list item measurements were cached and not invalidated.

We're using `ListState.measure_all()` to pre-measure all items for an
accurate scrollbar. When font size changes, these cached measurements
become stale but weren't being refreshed.

This commit fixes the issue by calling `ListState.measure_all()` when
settings change, ensuring items are re-measured on the next layout
without affecting scroll position.

Closes #43683

Release Notes:

- Fixed bug where changing the UI Font Size in the Settings UI would
break the scrollbar for the "Appearance" page

---------

Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>
```

## Parents

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

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