Skip to content

Commit 834122e

Browse files
committed
more comments
1 parent 268c392 commit 834122e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cdk/table/sticky-styler.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export class StickyStyler {
6262
}
6363
}
6464

65+
// Coalesce with sticky row/column updates (and potentially other changes like column resize).
6566
this._coalescedStyleScheduler.schedule(() => {
6667
for (const element of elementsToClear) {
6768
this._removeStickyStyle(element, stickyDirections);
@@ -92,6 +93,7 @@ export class StickyStyler {
9293
const startPositions = this._getStickyStartColumnPositions(cellWidths, stickyStartStates);
9394
const endPositions = this._getStickyEndColumnPositions(cellWidths, stickyEndStates);
9495

96+
// Coalesce with sticky row updates (and potentially other changes like column resize).
9597
this._coalescedStyleScheduler.schedule(() => {
9698
const isRtl = this.direction === 'rtl';
9799
const start = isRtl ? 'right' : 'left';
@@ -154,6 +156,7 @@ export class StickyStyler {
154156
}
155157
}
156158

159+
// Coalesce with other sticky row updates (top/bottom), sticky columns updates (and potentially other changes like column resize).
157160
this._coalescedStyleScheduler.schedule(() => {
158161
for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
159162
if (!states[rowIndex]) {
@@ -181,6 +184,7 @@ export class StickyStyler {
181184

182185
const tfoot = tableElement.querySelector('tfoot')!;
183186

187+
// Coalesce with other sticky updates (and potentially other changes like column resize).
184188
this._coalescedStyleScheduler.schedule(() => {
185189
if (stickyStates.some(state => !state)) {
186190
this._removeStickyStyle(tfoot, ['bottom']);

0 commit comments

Comments
 (0)