Skip to content

Commit

Permalink
Fix camera reset issue in CornerstoneViewportDownloadForm.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi committed Apr 15, 2024
1 parent 28e7248 commit 8baa20f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ const CornerstoneViewportDownloadForm = ({

downloadViewportElement.removeEventListener(Enums.Events.IMAGE_RENDERED, updateViewport);

// set the camera for the download viewport to be the same as the active viewport
// for some reason we need a reset camera here, and I don't know why
downloadViewport.resetCamera();
const presentation = activeViewport.getViewPresentation();
downloadViewport.setView(activeViewport.getViewReference(), presentation);
downloadViewport.render();
Expand Down

0 comments on commit 8baa20f

Please sign in to comment.