# Account for editor's full scroll width when laying out blocks · gitcafe/zed

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

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

Visibility: public

Requested revision: f19934096ae4107d7a4056380fa14866048537fe

Requested commit: f19934096ae4107d7a4056380fa14866048537fe

Commit: f19934096ae4107d7a4056380fa14866048537fe

Tree: 52a43e4758b2c8066ba73b9a59964525b2c64473

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Account for editor's full scroll width when laying out blocks

Compute the editor's scroll width earlier in layout and
store it on the layout state, rather than computing it repeatedly.

```

## Parents

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

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