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