From c2f74d69b6b86d4beabc768ca7463f251efe1bc5 Mon Sep 17 00:00:00 2001 From: codingories Date: Tue, 10 Jun 2025 13:13:17 +0800 Subject: [PATCH] fix(RangePicker): fix active bar alignment (#8221) --- components/vc-picker/RangePicker.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/vc-picker/RangePicker.tsx b/components/vc-picker/RangePicker.tsx index 69cb823dd..c81d2cca4 100644 --- a/components/vc-picker/RangePicker.tsx +++ b/components/vc-picker/RangePicker.tsx @@ -413,7 +413,11 @@ function RangerPicker() { const { width: panelDivWidth } = useElementSize(panelDivRef); const { width: arrowWidth } = useElementSize(arrowRef); const { width: startInputDivWidth } = useElementSize(startInputDivRef); - const { width: separatorWidth } = useElementSize(separatorRef); + const { width: separatorWidth } = useElementSize( + separatorRef, + { width: 0, height: 0 }, + { box: 'border-box' }, + ); watch( [ mergedActivePickerIndex,