Take an Into<AnyViewHandle>
in ChildView::new
Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
parent
dbf48d2a5b
commit
e7d4c385d5
12 changed files with 69 additions and 56 deletions
|
@ -516,7 +516,7 @@ impl View for Pane {
|
|||
if let Some(active_item) = self.active_item() {
|
||||
Flex::column()
|
||||
.with_child(self.render_tabs(cx))
|
||||
.with_child(ChildView::new(active_item.id()).flexible(1., true).boxed())
|
||||
.with_child(ChildView::new(active_item).flexible(1., true).boxed())
|
||||
.named("pane")
|
||||
} else {
|
||||
Empty::new().named("pane")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue