Skip to content

Commit 0900647

Browse files
authored
Update List.tsx
1 parent 6725b55 commit 0900647

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/List.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function BaseList<T>(
5656
) {
5757
// hooks
5858
const parentRef = useRef<HTMLDivElement | null>(null);
59-
const { ref: innerRef, width: innerWidth = 0 } = useResizeDetector<HTMLDivElement>();
59+
const { ref: innerRef, width: _innerWidth = 0 } = useResizeDetector<HTMLDivElement>();
6060
const [widthConstants, setWidthConstants] = useState(findColumnWidthConstants(columns));
6161
const [pixelWidths, setPixelWidths] = useState<number[]>(() => {
6262
const { fixedWidth, remainingCols } = widthConstants;
@@ -75,7 +75,7 @@ function BaseList<T>(
7575
});
7676

7777
// constants
78-
const isScrollHorizontal = (innerRef.current?.scrollWidth || 0) > innerWidth + 16;
78+
const isScrollHorizontal = false;
7979
const items = virtualizer.getVirtualItems();
8080
const { fixedWidth, remainingCols } = widthConstants;
8181

0 commit comments

Comments
 (0)