diff --git a/src/hooks/common/table.ts b/src/hooks/common/table.ts index 7e3509d..0e117a1 100644 --- a/src/hooks/common/table.ts +++ b/src/hooks/common/table.ts @@ -205,10 +205,10 @@ export function useTableOperate( export function useTableScroll(scrollX: number = 702) { const tableWrapperRef = useRef(null); - const height = tableWrapperRef.current?.clientHeight; + const size = useSize(tableWrapperRef); const scrollConfig = { - y: height ? height - 176 : 240, + y: size?.height ? size.height - 184 : 240, x: scrollX };