Unverified Commit f818bb9a authored by ztw2010's avatar ztw2010 Committed by GitHub

fix(useTableScroll): query paginationel every time to get the correct height (#355)

parent 257aaa32
...@@ -91,9 +91,7 @@ export function useTableScroll( ...@@ -91,9 +91,7 @@ export function useTableScroll(
// Pager height // Pager height
let paginationHeight = 2; let paginationHeight = 2;
if (!isBoolean(pagination)) { if (!isBoolean(pagination)) {
if (!paginationEl) { paginationEl = tableEl.querySelector('.ant-pagination') as HTMLElement;
paginationEl = tableEl.querySelector('.ant-pagination') as HTMLElement;
}
if (paginationEl) { if (paginationEl) {
const offsetHeight = paginationEl.offsetHeight; const offsetHeight = paginationEl.offsetHeight;
paginationHeight += offsetHeight || 0; paginationHeight += offsetHeight || 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment