# image_viewer: Compute better initial zoom level \(\#47886\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 483e64a287516939a7d02a7bee108919c04e8282

Requested commit: 483e64a287516939a7d02a7bee108919c04e8282

Commit: 483e64a287516939a7d02a7bee108919c04e8282

Tree: cc959dedc0329dec95c1628f2402e04bc192cc62

Author: Finn Evers

Committer: GitHub

## Message

```
image_viewer: Compute better initial zoom level (#47886)

Closes Josephs note about that.

Release Notes:

- Preview only: Fixed an issue where images in the image viewer would
not fit the viewer initially.
```

## Parents

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

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