# gpui: Always recompute layout on cache miss\. \(\#4131\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7860372bebcf42e737dff98765b713c4e828baf5

Requested commit: 7860372bebcf42e737dff98765b713c4e828baf5

Commit: 7860372bebcf42e737dff98765b713c4e828baf5

Tree: 6142d82f2f02d657e152498338ce6f600513397d

Author: Max Brunsfeld

Committer: GitHub

## Message

```
gpui: Always recompute layout on cache miss. (#4131)

I'm not yet sure whether this is 100% correct, but it seems to alleviate
the following issue:
`When opening a dock, the panel doesn't appear right away. An empty dock
is briefly visible.`
Release Notes:

- Fixed panel layout being incorrect for a brief time after opening
(fixes https://github.com/zed-industries/community/issues/2415)
```

## Parents

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

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

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