fix(layouts): and fix thumbnail in touch and update migration guide for 3.8 release (#4052)
This commit is contained in:
1 parent
28bc8914a8
commit
d250d04580
30 files changed
+209
-158
No files matched your search
@@ -16,6 +16,7 @@ import { StateSyncService } from '@ohif/core';
|
||||
*/
|
||||
export const findOrCreateViewport = (
|
||||
hangingProtocolService,
|
||||
isHangingProtocolLayout,
|
||||
viewportsByPosition,
|
||||
position: number,
|
||||
positionId: string,
|
||||
@@ -31,8 +32,13 @@ export const findOrCreateViewport = (
|
||||
if (!options.inDisplay) {
|
||||
options.inDisplay = [...viewportsByPosition.initialInDisplay];
|
||||
}
|
||||
// See if there is a default viewport for new views.
|
||||
const missing = hangingProtocolService.getMissingViewport(protocolId, stageIndex, options);
|
||||
|
||||
// See if there is a default viewport for new views
|
||||
const missing = hangingProtocolService.getMissingViewport(
|
||||
isHangingProtocolLayout ? protocolId : 'default',
|
||||
stageIndex,
|
||||
options
|
||||
);
|
||||
if (missing) {
|
||||
const displaySetInstanceUIDs = missing.displaySetsInfo.map(it => it.displaySetInstanceUID);
|
||||
options.inDisplay.push(...displaySetInstanceUIDs);
|
||||
|
||||
Reference in new issue
Block a user