Skip to content

Commit bf5ba00

Browse files
committed
rename: private _resetElementStyles
1 parent a16de11 commit bf5ba00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/sticky-header/sticky-header.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
184184
}
185185

186186
/** Reset element to its original CSS. */
187-
resetElement(): void {
187+
private _resetElementStyles(): void {
188188
this.element.classList.remove(STICK_START_CLASS);
189189
extendObject(this.element.style, this._originalStyles);
190190
}
@@ -269,7 +269,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
269269
(currentPosition < this._stickyRegionTop ||
270270
currentPosition > this._stickyRegionBottomThreshold)
271271
|| currentPosition >= this._stickyRegionBottomThreshold) {
272-
this.resetElement();
272+
this._resetElementStyles();
273273
if (currentPosition >= this._stickyRegionBottomThreshold) {
274274
this._unstuckElement();
275275
}

0 commit comments

Comments
 (0)