From c154d07d1617cf669d2ca06e82194f7e19cbaca3 Mon Sep 17 00:00:00 2001 From: "ilia.brauer" Date: Thu, 16 Oct 2025 09:54:25 +0200 Subject: [PATCH 1/2] [data-table] fixed spinner height, depending on scrolling --- .../data-table/src/components/Body/Body.tsx | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/semcore/data-table/src/components/Body/Body.tsx b/semcore/data-table/src/components/Body/Body.tsx index 5b6059f851..b16478939b 100644 --- a/semcore/data-table/src/components/Body/Body.tsx +++ b/semcore/data-table/src/components/Body/Body.tsx @@ -148,6 +148,22 @@ class BodyRoot extends Component { + const { headerHeight: propsHeaderHeight, tableContainerRef } = this.asProps; + + let headerHeight = propsHeaderHeight; + + if (tableContainerRef.current) { + if (tableContainerRef.current.scrollTop > headerHeight) { + headerHeight = 0; + } else { + headerHeight = headerHeight - tableContainerRef.current.scrollTop; + } + } + + return headerHeight; + }; + render() { const SBody = Root; const SRowGroup = Box; @@ -155,7 +171,6 @@ class BodyRoot extends Component extends Component extends Component Date: Wed, 22 Oct 2025 16:18:26 +0200 Subject: [PATCH 2/2] [data-table] fixed spinner offset for table with sticky header --- semcore/data-table/src/components/Body/Body.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/semcore/data-table/src/components/Body/Body.tsx b/semcore/data-table/src/components/Body/Body.tsx index b16478939b..ec97cb8dd3 100644 --- a/semcore/data-table/src/components/Body/Body.tsx +++ b/semcore/data-table/src/components/Body/Body.tsx @@ -149,10 +149,14 @@ class BodyRoot extends Component { - const { headerHeight: propsHeaderHeight, tableContainerRef } = this.asProps; + const { headerHeight: propsHeaderHeight, tableContainerRef, stickyHeader } = this.asProps; let headerHeight = propsHeaderHeight; + if (stickyHeader) { + return headerHeight; + } + if (tableContainerRef.current) { if (tableContainerRef.current.scrollTop > headerHeight) { headerHeight = 0;