Skip to content

Commit 2791cca

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 8f2cff3 commit 2791cca

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
@@ -231,12 +231,10 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
231231
}
232232

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

0 commit comments

Comments
 (0)