diff --git a/services/web/frontend/js/features/review-panel-new/components/review-panel-current-file.tsx b/services/web/frontend/js/features/review-panel-new/components/review-panel-current-file.tsx index 7b136cddb0..67e9a94476 100644 --- a/services/web/frontend/js/features/review-panel-new/components/review-panel-current-file.tsx +++ b/services/web/frontend/js/features/review-panel-new/components/review-panel-current-file.tsx @@ -116,7 +116,7 @@ const ReviewPanelCurrentFile: FC = () => { false )?.addCommentRanges - useEffect(() => { + const positionsMeasureRequest = useCallback(() => { if (aggregatedRanges) { view.requestMeasure({ key: 'review-panel-position', @@ -177,6 +177,9 @@ const ReviewPanelCurrentFile: FC = () => { } }, [view, aggregatedRanges, addCommentRanges]) + useEffect(positionsMeasureRequest, [positionsMeasureRequest]) + useEventListener('editor:geometry-change', positionsMeasureRequest) + const showEmptyState = useMemo( () => hasActiveRange(ranges, threads) === false, [ranges, threads]