@@ -11,6 +11,27 @@ import TableCellView from "./TableCellView";
1111import { COL_MIN_WIDTH , CustomColumnType } from "../tableUtils" ;
1212import { TableColumnStyleType } from "comps/controls/styleControlConstants" ;
1313import { RowColorViewType , RowHeightViewType } from "../tableTypes" ;
14+ import styled from "styled-components" ;
15+
16+
17+ const StyledTableWrapper = styled . div `
18+ /* Hide AntD's virtual horizontal scrollbar overlay */
19+ .ant-table-tbody-virtual-scrollbar-horizontal {
20+ display: none !important;
21+ height: 0 !important;
22+ }
23+ /* Make the virtual scrollbar container inert (avoids dead click zone) */
24+ .ant-table-tbody-virtual-scrollbar {
25+ pointer-events: none !important;
26+ }
27+
28+ /* (Optional) Some builds also render a sticky helper track – hide it too */
29+ .ant-table-sticky-scroll,
30+ .ant-table-sticky-scroll-bar {
31+ display: none !important;
32+ height: 0 !important;
33+ }
34+ ` ;
1435
1536export type ResizeableTableProps < RecordType > = Omit <
1637 TableProps < RecordType > ,
@@ -230,7 +251,7 @@ function ResizeableTableComp<RecordType extends object>(
230251 ] ) ;
231252
232253 return (
233- < div ref = { tableRef } >
254+ < StyledTableWrapper ref = { tableRef } >
234255 < Table < RecordType >
235256 components = { {
236257 header : {
@@ -247,7 +268,7 @@ function ResizeableTableComp<RecordType extends object>(
247268 virtual = { scrollAndVirtualizationSettings . virtual }
248269 scroll = { scrollAndVirtualizationSettings . scroll }
249270 />
250- </ div >
271+ </ StyledTableWrapper >
251272 ) ;
252273}
253274
0 commit comments