We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4ea4c4 commit bc67301Copy full SHA for bc67301
src/hooks/common/table.ts
@@ -205,10 +205,10 @@ export function useTableOperate<T extends TableData = TableData>(
205
export function useTableScroll(scrollX: number = 702) {
206
const tableWrapperRef = useRef<HTMLDivElement>(null);
207
208
- const height = tableWrapperRef.current?.clientHeight;
+ const size = useSize(tableWrapperRef);
209
210
const scrollConfig = {
211
- y: height ? height - 176 : 240,
+ y: size?.height ? size.height - 184 : 240,
212
x: scrollX
213
};
214
0 commit comments