@@ -977,7 +977,11 @@ export function MassiveTable<Row = unknown>(props: MassiveTableProps<Row>) {
977977 ) ;
978978 } ) }
979979 { draggingColIndex !== null && (
980- < div className = { classes . overlayLayer } aria-hidden >
980+ < div
981+ className = { classes . overlayLayer }
982+ aria-hidden
983+ style = { { position : 'absolute' , inset : 0 , pointerEvents : 'none' , zIndex : 4 } }
984+ >
981985 { overlayMeta . widths . map ( ( w , j ) => {
982986 const isDataCol = hasInlineGroup ? j > 0 : true ;
983987 const dataIdx = hasInlineGroup ? j - 1 : j ;
@@ -987,14 +991,24 @@ export function MassiveTable<Row = unknown>(props: MassiveTableProps<Row>) {
987991 < div
988992 key = { `hdr-ov:${ hasInlineGroup && j === 0 ? '__inline' : JSON . stringify ( columnsOrdered [ dataIdx ] ?. path ) } ` }
989993 className = { classes . overlayCol }
990- style = { { left : overlayMeta . lefts [ j ] , width : w } }
994+ style = { {
995+ position : 'absolute' ,
996+ top : 0 ,
997+ bottom : 0 ,
998+ left : overlayMeta . lefts [ j ] ,
999+ width : w ,
1000+ background : 'var(--massive-table-dim-overlay, rgba(0, 0, 0, 0.1))' ,
1001+ } }
9911002 />
9921003 ) ;
9931004 } ) }
9941005 </ div >
9951006 ) }
9961007 </ div >
997- < div className = { classes . rows } style = { { height : contentHeight , width : totalWidth } } >
1008+ < div
1009+ className = { classes . rows }
1010+ style = { { height : contentHeight , width : totalWidth , position : 'relative' } }
1011+ >
9981012 { Array . from ( { length : Math . max ( 0 , end - start ) } ) . map ( ( _ , i ) => {
9991013 const rowIndex = start + i ;
10001014 const row = cache . rows [ rowIndex ] ;
@@ -1204,7 +1218,11 @@ export function MassiveTable<Row = unknown>(props: MassiveTableProps<Row>) {
12041218 ) ;
12051219 } ) }
12061220 { draggingColIndex !== null && (
1207- < div className = { classes . overlayLayer } aria-hidden >
1221+ < div
1222+ className = { classes . overlayLayer }
1223+ aria-hidden
1224+ style = { { position : 'absolute' , inset : 0 , pointerEvents : 'none' , zIndex : 4 } }
1225+ >
12081226 { overlayMeta . widths . map ( ( w , j ) => {
12091227 const isDataCol = hasInlineGroup ? j > 0 : true ;
12101228 const dataIdx = hasInlineGroup ? j - 1 : j ;
@@ -1214,7 +1232,14 @@ export function MassiveTable<Row = unknown>(props: MassiveTableProps<Row>) {
12141232 < div
12151233 key = { `row-ov:${ hasInlineGroup && j === 0 ? '__inline' : JSON . stringify ( columnsOrdered [ dataIdx ] ?. path ) } ` }
12161234 className = { classes . overlayCol }
1217- style = { { left : overlayMeta . lefts [ j ] , width : w , height : '100%' } }
1235+ style = { {
1236+ position : 'absolute' ,
1237+ top : 0 ,
1238+ bottom : 0 ,
1239+ left : overlayMeta . lefts [ j ] ,
1240+ width : w ,
1241+ background : 'var(--massive-table-dim-overlay, rgba(0, 0, 0, 0.1))' ,
1242+ } }
12181243 />
12191244 ) ;
12201245 } ) }
0 commit comments