Errors during Window resize for Viewer that isn't visible -
i hosting autodesk viewer inside bootstrap div, , find when tab not active, hiding viewer, there errors thrown when window resized.
i avoid tearing down viewer , preventing handling resize events when tab deactivated.
is there way this?
yes correct, attach handler tab hidden depending on code , below:
if (this.viewer) { if(this.viewer.impl.selector) { this.viewer.teardown() this.viewer.finish() this.viewer = null } }
Comments
Post a Comment