Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in resize() event handler #4

Open
larrybarbieri opened this issue Jul 13, 2017 · 0 comments
Open

Error in resize() event handler #4

larrybarbieri opened this issue Jul 13, 2017 · 0 comments

Comments

@larrybarbieri
Copy link

Closing the viewer object causes and error when there is an overlay created for that viewer. When the close() method is called it eventually generates a resize event that is handled by the canvas overlay object. Inside that event handler, it attempts to get the image via a call to viewer.world.getItemAt(0). Then is attempts to use that image object to get the dimensions of the image. However, because the viewer has been closed the image(s) have already been removed and the viewer.world.getItemAt(0) routine returns null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant