@@ -62,6 +62,7 @@ export class StickyStyler {
62
62
}
63
63
}
64
64
65
+ // Coalesce with sticky row/column updates (and potentially other changes like column resize).
65
66
this . _coalescedStyleScheduler . schedule ( ( ) => {
66
67
for ( const element of elementsToClear ) {
67
68
this . _removeStickyStyle ( element , stickyDirections ) ;
@@ -92,6 +93,7 @@ export class StickyStyler {
92
93
const startPositions = this . _getStickyStartColumnPositions ( cellWidths , stickyStartStates ) ;
93
94
const endPositions = this . _getStickyEndColumnPositions ( cellWidths , stickyEndStates ) ;
94
95
96
+ // Coalesce with sticky row updates (and potentially other changes like column resize).
95
97
this . _coalescedStyleScheduler . schedule ( ( ) => {
96
98
const isRtl = this . direction === 'rtl' ;
97
99
const start = isRtl ? 'right' : 'left' ;
@@ -154,6 +156,7 @@ export class StickyStyler {
154
156
}
155
157
}
156
158
159
+ // Coalesce with other sticky row updates (top/bottom), sticky columns updates (and potentially other changes like column resize).
157
160
this . _coalescedStyleScheduler . schedule ( ( ) => {
158
161
for ( let rowIndex = 0 ; rowIndex < rows . length ; rowIndex ++ ) {
159
162
if ( ! states [ rowIndex ] ) {
@@ -181,6 +184,7 @@ export class StickyStyler {
181
184
182
185
const tfoot = tableElement . querySelector ( 'tfoot' ) ! ;
183
186
187
+ // Coalesce with other sticky updates (and potentially other changes like column resize).
184
188
this . _coalescedStyleScheduler . schedule ( ( ) => {
185
189
if ( stickyStates . some ( state => ! state ) ) {
186
190
this . _removeStickyStyle ( tfoot , [ 'bottom' ] ) ;
0 commit comments