Skip to content

Adding an annotation or redaction resets the zoom level #48

Description

@nathanstitt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions