File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -257,11 +257,11 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
257
257
258
258
259
259
/**
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
261
261
* a header should be stick and when should it be unstuck by comparing the offsetTop
262
262
* of scrollable container with the top and bottom of the sticky region.
263
263
*/
264
- sticker ( ) : void {
264
+ applyStickyPositionStyles ( ) : void {
265
265
let currentPosition : number = this . upperScrollableContainer . offsetTop ;
266
266
267
267
// unstuck when the element is scrolled out of the sticky region
@@ -283,6 +283,6 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
283
283
284
284
defineRestrictionsAndStick ( ) : void {
285
285
this . _measureStickyRegionBounds ( ) ;
286
- this . sticker ( ) ;
286
+ this . applyStickyPositionStyles ( ) ;
287
287
}
288
288
}
You can’t perform that action at this time.
0 commit comments