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

Adding an annotation or redaction resets the zoom level #48

Open
nathanstitt opened this issue Jan 5, 2015 · 0 comments
Open

Adding an annotation or redaction resets the zoom level #48

nathanstitt opened this issue Jan 5, 2015 · 0 comments

Comments

@nathanstitt
Copy link
Member

When the viewer is zoomed in or out, adding an annotation or redaction resets the zoom to the default size.

This happens because DV.Api.addAnnotation calls redraw(), which in turn calls this.viewer.helpers.autoZoomPage().

As a test, I removed the call to redraw() and the newly drawn annotations then failed to display. Therefore it appears that the redraw() call is necessary.

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