Sidenav: Support for headers that are not fixed and onscroll events #9309
Labels
area: material/sidenav
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P4
A relatively minor issue that is not relevant to core functions
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Maybe there would be an onscroll event that would subtract the top offset value as you scroll, and maybe an additional property that you would need to determine if you did or did not have a fixed header.
What is the current behavior?
If you set the sidenav to fixed
[fixedInViewport]="true"
and you offset the top value based on your header height[fixedTopGap]="64"
and then you scroll down the fixed header doesn't re-position as you scroll when the header is offscreen.What are the steps to reproduce?
https://stackblitz.com/edit/angular-cm3u2d
![header-gap](https://cdn.statically.io/img/user-images.githubusercontent.com/10760551/34743402-376dd340-f54f-11e7-9b4e-d19b2dff8076.gif)
What is the use-case or motivation for changing an existing behavior?
To support a wider range of layout options for applications
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular Material 5.0.0-rc3
Is there anything else we should know?
It seems like sidenav was designed to be used with a fixed header due to the overflow properties and examples provided. If this is true then maybe I'm using it in the wrong context.
The text was updated successfully, but these errors were encountered: