gpui: Always recompute layout on cache miss.
This commit is contained in:
parent
9615eb825f
commit
4408d45f7a
1 changed files with 1 additions and 4 deletions
|
@ -321,10 +321,7 @@ impl Element for AnyView {
|
|||
}
|
||||
}
|
||||
|
||||
let mut element = state
|
||||
.element
|
||||
.take()
|
||||
.unwrap_or_else(|| (self.request_layout)(self, cx).1);
|
||||
let mut element = (self.request_layout)(self, cx).1;
|
||||
element.draw(bounds.origin, bounds.size.into(), cx);
|
||||
|
||||
state.cache_key = Some(ViewCacheKey {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue