gpui: Always recompute layout on cache miss.

This commit is contained in:
Piotr Osiewicz 2024-01-18 20:55:41 +01:00
parent 9615eb825f
commit 4408d45f7a

View file

@ -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 {