We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1bba49 commit 10fd6d9Copy full SHA for 10fd6d9
src/AutoSizer.tsx
@@ -23,13 +23,12 @@ const estimateTableHeight = (
23
const headerHeight = getElemHeight(header, estimatedHeader, HEADER_HEIGHT);
24
25
// find footer height
26
- let footerHeight = 0;
27
- if (hasFooter) {
28
- footerHeight = getElemHeight(findFooterByUuid(uuid), estimatedFooter, FOOTER_HEIGHT);
29
- }
+ const footerHeight = hasFooter
+ ? getElemHeight(findFooterByUuid(uuid), estimatedFooter, FOOTER_HEIGHT)
+ : 0;
30
31
// calculate border height
32
- const table = header?.parentElement?.parentElement;
+ const table = header?.parentElement;
33
const borderHeight = table ? table.offsetHeight - table.clientHeight : 0;
34
35
// for the rows, calculate the height of all the rows
0 commit comments