Skip to content

Commit 663564b

Browse files
committed
rename 'sticker()' to '_applyStickyPositionStyles()'
1 parent ac07aef commit 663564b

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
@@ -258,11 +258,11 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
258258

259259

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

268268
// unstuck when the element is scrolled out of the sticky region
@@ -284,6 +284,6 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
284284

285285
defineRestrictionsAndStick(): void {
286286
this._measureStickyRegionBounds();
287-
this.sticker();
287+
this.applyStickyPositionStyles();
288288
}
289289
}

0 commit comments

Comments
 (0)