You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
adding height:100% to md-content works. but it scrolls sidemenu along with the page. Adding position:fixed and overflow:hidden to fullscreen solves that. and overflow-y: scroll; height: 100%;
to md-content
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.
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: @import "~@devmonkeys/scss-elements/style";
My code works ofc only if you use the fullscreen directive in your
Activity
uzumakinaruto123 commentedon Jun 13, 2016
+1
adding
height:100%to md-content works. but it scrolls sidemenu along with the page. Addingposition:fixedandoverflow:hiddento fullscreen solves that. andoverflow-y: scroll; height: 100%;to md-content
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.
fix(sidenav): md-content now fills height (#703)
SvenBudak commentedon Jan 23, 2018
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:
@import "~@devmonkeys/scss-elements/style";My code works ofc only if you use the fullscreen directive in your
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.