/// Recalculate the viewer's dimensions and redraw.
Recalculate the viewer's dimensions and redraw.
Recalculate the viewer ' s dimensions and redraw .
pub fn js_resize(&self, force: bool) -> js_sys::Promise {
        if !force && self.resize_handle.borrow().is_some() {
            let msg: JsValue = "`notifyResize(false)` called, disabling auto-size.  It can be re-enabled with `setAutoSize(true)`.".into();
            web_sys::console::warn_1(&msg);
            *self.resize_handle.borrow_mut() = None;
        }
        let renderer = self.renderer.clone();
        promisify_ignore_view_delete(async move { renderer.resize().await })
    }
pub fn js_resize ( & self , force : bool ) -> js_sys :: Promise { if ! force && self . resize_handle . borrow ( ) . is_some ( ) { let msg : JsValue = " " . into ( ) ; web_sys :: console :: warn_1 ( & msg ) ; * self . resize_handle . borrow_mut ( ) = None ; } let renderer = self . renderer . clone ( ) ; promisify_ignore_view_delete ( async move { renderer . resize ( ) . await } ) }
Recalculate the viewer's dimensions and redraw.
Recalculate the viewer ' s dimensions and redraw .
&self
force
bool