Skip to content

Commit dbed211

Browse files
committed
change doc '/**
* Unsticks the header so that it goes back to scrolling normally. * * This should be called when the element reaches the bottom of its cdkStickyRegion so that it * smoothly scrolls out of view as the next sticky-header moves in. */'
1 parent 0e3b6f3 commit dbed211

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,10 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
230230
}
231231

232232
/**
233-
* Unstuck element: When an element reaches the bottom of its cdkStickyRegion,
234-
* It should be unstuck. And its position will be set as 'relative', its bottom
235-
* will be set as '0'. So it will be stick at the bottom of its cdkStickyRegion and
236-
* will be scrolled up with its cdkStickyRegion element. In this way, the sticky header
237-
* can be changed smoothly when two sticky header meet and the later one need to replace
238-
* the former one.
233+
* Unsticks the header so that it goes back to scrolling normally.
234+
*
235+
* This should be called when the element reaches the bottom of its cdkStickyRegion so that it
236+
* smoothly scrolls out of view as the next sticky-header moves in.
239237
*/
240238
private _unstuckElement(): void {
241239
this.isStuck = false;

0 commit comments

Comments
 (0)