fix(viewport-webworker-segmentation): Resolve issues with viewport detection, webworker termination, and segmentation panel layout change (#4059)
This commit is contained in:
1 parent
3ec7e51216
commit
52a0c59294
15 files changed
+71
-51
No files matched your search
@@ -182,8 +182,10 @@ export function ViewportGridProvider({ children, service }) {
|
||||
|
||||
// if it is not part of the hanging protocol layout, we should remove the toolGroupId
|
||||
// and viewportType from the viewportOptions so that it doesn't
|
||||
// inherit the hanging protocol layout options
|
||||
if (!state.isHangingProtocolLayout) {
|
||||
// inherit the hanging protocol layout options, only when
|
||||
// the viewport options is not provided (e.g., when drag and drop)
|
||||
// otherwise, programmatically set options should be preserved
|
||||
if (!updatedViewport.viewportOptions && !state.isHangingProtocolLayout) {
|
||||
viewportOptions = {
|
||||
viewportId: viewportOptions.viewportId,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user