Skip to content

Commit

Permalink
fix(plugin-chart-table): Prevent misalignment of totals and headers w…
Browse files Browse the repository at this point in the history
…hen scrollbar is visible (apache#26964)

(cherry picked from commit e6d2fb6)
  • Loading branch information
kgabryje authored and sadpandajoe committed Feb 12, 2024
1 parent 5834622 commit d5083ab
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ function StickyWrap({
height: maxHeight,
overflow: 'auto',
visibility: 'hidden',
scrollbarGutter: 'stable',
}}
>
{React.cloneElement(table, {}, theadWithRef, tbody, tfootWithRef)}
Expand All @@ -252,6 +253,7 @@ function StickyWrap({
ref={scrollHeaderRef}
style={{
overflow: 'hidden',
scrollbarGutter: 'stable',
}}
>
{React.cloneElement(
Expand All @@ -270,6 +272,7 @@ function StickyWrap({
ref={scrollFooterRef}
style={{
overflow: 'hidden',
scrollbarGutter: 'stable',
}}
>
{React.cloneElement(
Expand Down Expand Up @@ -297,6 +300,7 @@ function StickyWrap({
style={{
height: bodyHeight,
overflow: 'auto',
scrollbarGutter: 'stable',
}}
onScroll={sticky.hasHorizontalScroll ? onScroll : undefined}
>
Expand Down

0 comments on commit d5083ab

Please sign in to comment.