mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 07:04:34 +00:00
Fix window property propagation for the nodejs front-end
This commit is contained in:
parent
64a4e749b7
commit
298c8586d2
1 changed files with 1 additions and 2 deletions
|
@ -234,8 +234,7 @@ declare_types! {
|
||||||
let component = cx.borrow(&mut this, |x| x.0.clone());
|
let component = cx.borrow(&mut this, |x| x.0.clone());
|
||||||
let component = component.ok_or(()).or_else(|()| cx.throw_error("Invalid type"))?;
|
let component = component.ok_or(()).or_else(|()| cx.throw_error("Invalid type"))?;
|
||||||
let persistent_context = persistent_context::PersistentContext::from_object(&mut cx, this.downcast().unwrap())?;
|
let persistent_context = persistent_context::PersistentContext::from_object(&mut cx, this.downcast().unwrap())?;
|
||||||
let props = WindowProperties{width: None, height: None, dpi: None};
|
show(&mut cx, component.borrow(), &component.window_properties(), persistent_context)?;
|
||||||
show(&mut cx, component.borrow(), &props, persistent_context)?;
|
|
||||||
Ok(JsUndefined::new().as_value(&mut cx))
|
Ok(JsUndefined::new().as_value(&mut cx))
|
||||||
}
|
}
|
||||||
method get_property(mut cx) {
|
method get_property(mut cx) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue