OHIF-311: Set nav arrows as active for all viewports (#1930)

This commit is contained in:
Igor Octaviano authored and GitHub committed 2020-07-28 10:44:48 +02:00
1 parent 3d48a2a2c7
commit 4d1d73b89c
2 files changed
+4 -8

No files matched your search

@@ -427,7 +427,6 @@ function OHIFCornerstoneSRViewport({
}} }}
onSeriesChange={onMeasurementChange} onSeriesChange={onMeasurementChange}
onHydrationClick={hydrateMeasurementService} onHydrationClick={hydrateMeasurementService}
showNavArrows={viewportIndex === activeViewportIndex}
studyData={{ studyData={{
label, label,
isTracked: false, isTracked: false,
@@ -448,8 +447,8 @@ function OHIFCornerstoneSRViewport({
spacing: spacing:
PixelSpacing && PixelSpacing.length PixelSpacing && PixelSpacing.length
? `${PixelSpacing[0].toFixed(2)}mm x ${PixelSpacing[1].toFixed( ? `${PixelSpacing[0].toFixed(2)}mm x ${PixelSpacing[1].toFixed(
2 2
)}mm` )}mm`
: '', : '',
scanner: ManufacturerModelName || '', scanner: ManufacturerModelName || '',
}, },
@@ -298,8 +298,6 @@ function TrackedCornerstoneViewport({
); );
} }
const showNavArrows = isTracked && viewportIndex === activeViewportIndex;
// TODO -> disabled double click for now: onDoubleClick={_onDoubleClick} // TODO -> disabled double click for now: onDoubleClick={_onDoubleClick}
return ( return (
@@ -310,7 +308,6 @@ function TrackedCornerstoneViewport({
evt.preventDefault(); evt.preventDefault();
}} }}
onSeriesChange={direction => switchMeasurement(direction)} onSeriesChange={direction => switchMeasurement(direction)}
showNavArrows={showNavArrows}
studyData={{ studyData={{
label, label,
isTracked, isTracked,
@@ -330,8 +327,8 @@ function TrackedCornerstoneViewport({
spacing: spacing:
PixelSpacing && PixelSpacing.length PixelSpacing && PixelSpacing.length
? `${PixelSpacing[0].toFixed(2)}mm x ${PixelSpacing[1].toFixed( ? `${PixelSpacing[0].toFixed(2)}mm x ${PixelSpacing[1].toFixed(
2 2
)}mm` )}mm`
: '', : '',
scanner: ManufacturerModelName || '', scanner: ManufacturerModelName || '',
}, },