-
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
md-sidenav: fullscreen doesn't respect md-content #606
Comments
+1 adding what am trying to do is no matter what the main content's height is , sidemenu along with toolbar should always be fixed with 100% height. |
move overflow from `md-sidenav-layout` to `md-content` stretches `md-content` to fill available height closes #606
Old and Closed, but for everyone who is still looking for a solution, here is mine: My MediaQuerie Mixins
The Styles for the Sidenav Container
If you want, you can install my little mixin-lib direct from GitHub via npm and include the lib direct in your SCSS file with: My code works ofc only if you use the fullscreen directive in your |
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:
Possibly a bug
What is the expected behavior?
Given is
In DOM the content is wrapped in
md-content
. I would expectmd-content
to be fullscreen asmd-sidenav-layout
,md-sidenav
and the backdrop are.What is the current behavior?
md-sidenav
uses the full hight because ofmd-content
only respects the widthWhat are the steps to reproduce?
http://plnkr.co/edit/NjimGzKqXw6bKJjk8Pyg?p=preview
What is the use-case or motivation for changing an existing behavior?
To have control over the vertical overflow in the sidenav content.
To realize scrollable content that consumes the full height.
Which versions of Angular, Material, OS, browsers are affected?
alpha.5
Is there anything else we should know?
This is possibly a duplicate of (or at least related to) #487
I created a new issue as the use-case and targeted feature (fullscreen attribute vs. styling the height) are different. Although i think the solution could look quiet the same.
I also only found some very "hacky" ways to get the
md-content
becoming fullscreen. Like !important on:host md-content
to ignore proper view encapsulation or using global css (also ignoring view encapsulation).The text was updated successfully, but these errors were encountered: