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 @@ -166,7 +166,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
166
166
// the resized window. So we need to unstuck it then re-stick it.
167
167
// unstuck() can set 'isStuck' to FALSE. Then _stickElement() can work.
168
168
if ( this . isStuck ) {
169
- this . _unstuckElement ( ) ;
169
+ this . _unstickElement ( ) ;
170
170
this . _stickElement ( ) ;
171
171
}
172
172
}
@@ -236,7 +236,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
236
236
* This should be called when the element reaches the bottom of its cdkStickyRegion so that it
237
237
* smoothly scrolls out of view as the next sticky-header moves in.
238
238
*/
239
- private _unstuckElement ( ) : void {
239
+ private _unstickElement ( ) : void {
240
240
this . isStuck = false ;
241
241
242
242
if ( ! this . stickyParent ) {
@@ -272,7 +272,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
272
272
|| currentPosition >= this . _stickyRegionBottomThreshold ) {
273
273
this . _resetElementStyles ( ) ;
274
274
if ( currentPosition >= this . _stickyRegionBottomThreshold ) {
275
- this . _unstuckElement ( ) ;
275
+ this . _unstickElement ( ) ;
276
276
}
277
277
this . isStuck = false ; // stick when the element is within the sticky region
278
278
} else if ( this . isStuck === false &&
You can’t perform that action at this time.
0 commit comments