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

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -