fix : Resize was broken if 3d viewport displayed in HP (#4561)

This commit is contained in:
Salim Kanoun authored and GitHub committed 2024-12-02 08:53:46 -05:00
1 parent 0a81ddb6da
commit 878a1f8af8
2 files changed
+2 -2

No files matched your search

@@ -1062,7 +1062,7 @@ class CornerstoneViewportService extends PubSubService implements IViewportServi
// During a resize, the slice index should remain unchanged. This is a temporary fix for
// a larger issue regarding the definition of slice index with slab thickness.
// We need to revisit this to make it more robust and understandable.
delete presentation.viewReference.sliceIndex;
delete presentation.viewReference?.sliceIndex;
this.beforeResizePositionPresentations.set(viewportId, presentation);
});