Skip to content

Commit ed3b525

Browse files
just-borisat-susie
authored andcommitted
fix: Table scrollable detection (#3871)
1 parent 15e3125 commit ed3b525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/table/internal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ const InternalTable = React.forwardRef(
179179
getExpandableItemProps,
180180
});
181181

182-
const [containerWidth, wrapperMeasureRef] = useContainerQuery<number>(rect => rect.contentBoxWidth);
182+
const [containerWidth, wrapperMeasureRef] = useContainerQuery<number>(rect => rect.borderBoxWidth);
183183
const wrapperMeasureRefObject = useRef(null);
184184
const wrapperMeasureMergedRef = useMergeRefs(wrapperMeasureRef, wrapperMeasureRefObject);
185185

186-
const [tableWidth, tableMeasureRef] = useContainerQuery<number>(rect => rect.contentBoxWidth);
186+
const [tableWidth, tableMeasureRef] = useContainerQuery<number>(rect => rect.borderBoxWidth);
187187
const tableRefObject = useRef(null);
188188

189189
const secondaryWrapperRef = React.useRef<HTMLDivElement>(null);

0 commit comments

Comments
 (0)