Fix bug with wrong view ids being passed
This commit is contained in:
parent
9187863d0e
commit
4eb75f058f
2 changed files with 19 additions and 6 deletions
|
@ -181,6 +181,7 @@ pub struct Dock {
|
|||
|
||||
impl Dock {
|
||||
pub fn new(
|
||||
workspace_id: usize,
|
||||
default_item_factory: DockDefaultItemFactory,
|
||||
background_actions: BackgroundActions,
|
||||
cx: &mut ViewContext<Workspace>,
|
||||
|
@ -189,7 +190,7 @@ impl Dock {
|
|||
|
||||
let pane = cx.add_view(|cx| {
|
||||
Pane::new(
|
||||
cx.handle().id(),
|
||||
workspace_id,
|
||||
Some(position.anchor()),
|
||||
background_actions,
|
||||
cx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue