-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main content scrolling should be independent of sidenav's scrolling/position #698
Comments
I totally agree, |
For now i have ditched material sidenav . I am using http://purecss.io/ sidenav. with exampe here http://purecss.io/layouts/side-menu/. Only a 0.8 kb cdn link can make it. Which is so straightforward and simple. nothing complicated plus responsive. |
I'm having the same problem, will there be a fix soon? Or is there already a way to fix the sidenav while letting the content scroll? |
Same here, ATM sidenav is not really easy to handle. |
Any updates for this ? |
I found if I put a component with a fixed position inside the SideNav, I got the desired results. |
The following works only when put into the styles.css file:
But it does not take effect |
The "Sidenav with FAB" example here (under "examples" tab) demonstrates how to have independently scrolling sidenav & content: https://material.angular.io/components/component/sidenav |
@mmalerba Would it be possible to get a real example rather than an explanation? |
@mmalerba Also, those examples do not seem to work any more for those coming to this github issue from a web search. |
I added a number of examples in #7775, they haven't made it to the docs site yet |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug + feature request .
#### What is the expected behavior?
<md-sidenav></md-sidenav>
,<md-toolbar></md-toolbar>
, and<md-content>
inside should be all fixed in position. Having their own independent scrolls if necessary. should behave like independent compnents.Especially ,
<md-content>
should be independent so that any component/router-outlet placed inside can scroll if necessary.OUT OF THE BOX , there should be a sidenav-layout template/snippet and some directives for toolbar which can be given any structure wanted. toolbar directive like
fixed="true/false"
Like,
#### What is the current behavior?
The only way to enable scroll i found was on md-sidenav-layout, which scrolls whole layout.
Changing any inner children postioning just adds to the mess.
Simply changing
md-sidenav-layout
to some div/section withlayout="row" flex style="min-height: 100%;"
scrolling works well. Except , the 'over' mode ofmd-sidenav
is messed since there's nomd-sidenav-layout
#### What are the steps to reproduce?
http://plnkr.co/edit/ORA0KloDddgseMIOQ71i?p=preview
SO issue :- http://stackoverflow.com/questions/37857873/angular2-material-md-content-scrolling-issue
#### What is the use-case or motivation for changing an existing behavior?
To get more user-friendly control over material component styling and positions.
#### Which versions of Angular, Material, OS, browsers are affected?
Angular 2.0.0 RC , Material 2.0.0-alpha.5-2 , Browsers tested on chrome/mozilla
The text was updated successfully, but these errors were encountered: