mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
fix(plugin-chart-table): Prevent misalignment of totals and headers when scrollbar is visible (#26964)
(cherry picked from commit e6d2fb6fdf)
This commit is contained in:
committed by
Michael S. Molina
parent
05042facd3
commit
d1dad1e63d
@@ -226,6 +226,7 @@ function StickyWrap({
|
||||
height: maxHeight,
|
||||
overflow: 'auto',
|
||||
visibility: 'hidden',
|
||||
scrollbarGutter: 'stable',
|
||||
}}
|
||||
>
|
||||
{React.cloneElement(table, {}, theadWithRef, tbody, tfootWithRef)}
|
||||
@@ -252,6 +253,7 @@ function StickyWrap({
|
||||
ref={scrollHeaderRef}
|
||||
style={{
|
||||
overflow: 'hidden',
|
||||
scrollbarGutter: 'stable',
|
||||
}}
|
||||
>
|
||||
{React.cloneElement(
|
||||
@@ -270,6 +272,7 @@ function StickyWrap({
|
||||
ref={scrollFooterRef}
|
||||
style={{
|
||||
overflow: 'hidden',
|
||||
scrollbarGutter: 'stable',
|
||||
}}
|
||||
>
|
||||
{React.cloneElement(
|
||||
@@ -297,6 +300,7 @@ function StickyWrap({
|
||||
style={{
|
||||
height: bodyHeight,
|
||||
overflow: 'auto',
|
||||
scrollbarGutter: 'stable',
|
||||
}}
|
||||
onScroll={sticky.hasHorizontalScroll ? onScroll : undefined}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user