mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Support for for
in box layout in the interpreter
This commit is contained in:
parent
ab14978fa8
commit
e4e7ae46f4
4 changed files with 106 additions and 37 deletions
|
@ -330,7 +330,7 @@ declare_types! {
|
|||
let component = cx.borrow(&mut this, |x| x.0.clone());
|
||||
let component = component.ok_or(()).or_else(|()| cx.throw_error("Invalid type"))?;
|
||||
run_scoped(&mut cx,this.downcast().unwrap(), || {
|
||||
component.window().run(component.borrow(), component.root_item());
|
||||
component.window().run(component.borrow(), component.borrow_instance().root_item());
|
||||
Ok(())
|
||||
})?;
|
||||
Ok(JsUndefined::new().as_value(&mut cx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue