Activating the correct lesion when viewport is expanded
This commit is contained in:
parent
7840c2b6c2
commit
eb9b5a7440
@ -74,6 +74,8 @@ let lastActivatedRowItem;
|
|||||||
* @param measurementId The unique key for a specific Measurement
|
* @param measurementId The unique key for a specific Measurement
|
||||||
*/
|
*/
|
||||||
OHIF.measurements.jumpToRowItem = (rowItem, timepoints) => {
|
OHIF.measurements.jumpToRowItem = (rowItem, timepoints) => {
|
||||||
|
const { isZoomed, zoomedViewportIndex } = OHIF.viewerbase.layoutManager;
|
||||||
|
|
||||||
lastActivatedRowItem = rowItem;
|
lastActivatedRowItem = rowItem;
|
||||||
|
|
||||||
// Retrieve the list of available viewports
|
// Retrieve the list of available viewports
|
||||||
@ -81,7 +83,12 @@ OHIF.measurements.jumpToRowItem = (rowItem, timepoints) => {
|
|||||||
const numViewports = Math.max($viewports.length, 0);
|
const numViewports = Math.max($viewports.length, 0);
|
||||||
|
|
||||||
// Clone the timepoint list to prevent modifying the original object
|
// Clone the timepoint list to prevent modifying the original object
|
||||||
const timepointList = _.clone(timepoints);
|
let timepointList;
|
||||||
|
if (isZoomed) {
|
||||||
|
timepointList = [timepoints[zoomedViewportIndex]];
|
||||||
|
} else {
|
||||||
|
timepointList = _.clone(timepoints);
|
||||||
|
}
|
||||||
|
|
||||||
// Reverse the timepointList array if the flag is set
|
// Reverse the timepointList array if the flag is set
|
||||||
if (OHIF.viewer.invertViewportTimepointsOrder) {
|
if (OHIF.viewer.invertViewportTimepointsOrder) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user