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