Re-introduce auto-height in editor2 (#3471)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2023-12-01 12:02:45 +01:00 committed by GitHub
commit c9be637b6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 211 additions and 698 deletions

View file

@ -209,9 +209,7 @@ impl AnyView {
) {
cx.with_absolute_element_offset(origin, |cx| {
let (layout_id, rendered_element) = (self.layout)(self, cx);
cx.window
.layout_engine
.compute_layout(layout_id, available_space);
cx.compute_layout(layout_id, available_space);
(self.paint)(self, rendered_element, cx);
})
}