fix: enable measurements panel scroll (#4943)
This commit is contained in:
parent
8a08d26f01
commit
7a36eba67c
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { utils } from '@ohif/core';
|
||||
import { AccordionTrigger, MeasurementTable, useViewportGrid } from '@ohif/ui-next';
|
||||
import { AccordionTrigger, MeasurementTable, ScrollArea, useViewportGrid } from '@ohif/ui-next';
|
||||
import {
|
||||
PanelMeasurement,
|
||||
StudyMeasurements,
|
||||
@ -83,6 +83,7 @@ function PanelMeasurementTableTracking(props) {
|
||||
);
|
||||
|
||||
return (
|
||||
<ScrollArea>
|
||||
<div data-cy="trackedMeasurements-panel">
|
||||
<PanelMeasurement
|
||||
measurementFilter={measurementFilter}
|
||||
@ -106,6 +107,7 @@ function PanelMeasurementTableTracking(props) {
|
||||
</StudyMeasurements>
|
||||
</PanelMeasurement>
|
||||
</div>
|
||||
</ScrollArea>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ const ScrollArea = React.forwardRef<
|
||||
<ScrollAreaPrimitive.Root
|
||||
ref={ref}
|
||||
className={cn('relative h-full overflow-hidden', className)}
|
||||
type={props.type || 'auto'}
|
||||
type={props.type}
|
||||
{...props}
|
||||
>
|
||||
<ScrollAreaPrimitive.Viewport
|
||||
|
||||
Loading…
Reference in New Issue
Block a user