Skip to content

Commit 25132cd

Browse files
authored
Merge pull request #96 from mckervinc/mckervinc-patch-1
Update heuristic again
2 parents f59e418 + 4a09de1 commit 25132cd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# dependencies
55
node_modules
66

7+
# publish
8+
.npmrc
9+
710
# builds
811
build
912
dist

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-fluid-table",
3-
"version": "1.2.5",
3+
"version": "1.2.6",
44
"description": "A React table inspired by @tanstack/react-virtual",
55
"author": "Mckervin Ceme <mckervinc@live.com>",
66
"license": "MIT",

src/components/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function BaseList<T>(
7575
});
7676

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

0 commit comments

Comments
 (0)