You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by kg...@apache.org on 2024/02/01 17:27:33 UTC
(superset) branch master updated: fix(plugin-chart-table): Prevent misalignment of totals and headers when scrollbar is visible (#26964)
This is an automated email from the ASF dual-hosted git repository.
kgabryje pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new e6d2fb6fdf fix(plugin-chart-table): Prevent misalignment of totals and headers when scrollbar is visible (#26964)
e6d2fb6fdf is described below
commit e6d2fb6fdfa4d741de16b322bdc4bd01fb559413
Author: Kamil Gabryjelski <ka...@gmail.com>
AuthorDate: Thu Feb 1 18:27:22 2024 +0100
fix(plugin-chart-table): Prevent misalignment of totals and headers when scrollbar is visible (#26964)
---
.../plugins/plugin-chart-table/src/DataTable/hooks/useSticky.tsx | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/superset-frontend/plugins/plugin-chart-table/src/DataTable/hooks/useSticky.tsx b/superset-frontend/plugins/plugin-chart-table/src/DataTable/hooks/useSticky.tsx
index 2c82ca858f..dd753012d4 100644
--- a/superset-frontend/plugins/plugin-chart-table/src/DataTable/hooks/useSticky.tsx
+++ b/superset-frontend/plugins/plugin-chart-table/src/DataTable/hooks/useSticky.tsx
@@ -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}
>