Skip to content

Commit af4e244

Browse files
authored
Merge pull request #97 from mckervinc/mckervinc-patch-1
Just make isHorizontalScroll always false
2 parents 25132cd + 0900647 commit af4e244

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# CHANGELOG
22

3+
## 1.2.7
4+
5+
_2025-03-31_
6+
7+
### Bugix
8+
9+
- isHorizontalScroll is always false for now
10+
11+
## 1.2.6
12+
13+
_2025-03-31_
14+
15+
### Bugix
16+
17+
- move heuristic
18+
319
## 1.2.5
420

521
_2025-03-31_

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.6",
3+
"version": "1.2.7",
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: 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)