Skip to content

Commit ed2eef5

Browse files
committed
rename 'sticker()' to '_applyStickyPositionStyles()'
1 parent 364772a commit ed2eef5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/sticky-header/sticky-header.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,11 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
257257

258258

259259
/**
260-
* 'sticker()' function contains the main logic of sticky-header. It decides when
260+
* 'applyStickyPositionStyles()' function contains the main logic of sticky-header. It decides when
261261
* a header should be stick and when should it be unstuck by comparing the offsetTop
262262
* of scrollable container with the top and bottom of the sticky region.
263263
*/
264-
sticker(): void {
264+
applyStickyPositionStyles(): void {
265265
let currentPosition: number = this.upperScrollableContainer.offsetTop;
266266

267267
// unstuck when the element is scrolled out of the sticky region
@@ -283,6 +283,6 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
283283

284284
defineRestrictionsAndStick(): void {
285285
this._measureStickyRegionBounds();
286-
this.sticker();
286+
this.applyStickyPositionStyles();
287287
}
288288
}

0 commit comments

Comments
 (0)