mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
fix: Table Autosizing Has Unnecessary Scroll Bars (#19628)
This commit is contained in:
parent
d8b9e72682
commit
955413539b
@ -183,7 +183,9 @@ function StickyWrap({
|
||||
.clientHeight;
|
||||
const ths = bodyThead.childNodes[0]
|
||||
.childNodes as NodeListOf<HTMLTableHeaderCellElement>;
|
||||
const widths = Array.from(ths).map(th => th.clientWidth);
|
||||
const widths = Array.from(ths).map(
|
||||
th => th.getBoundingClientRect()?.width || th.clientWidth,
|
||||
);
|
||||
const [hasVerticalScroll, hasHorizontalScroll] = needScrollBar({
|
||||
width: maxWidth,
|
||||
height: maxHeight - theadHeight - tfootHeight,
|
||||
|
Loading…
Reference in New Issue
Block a user