md-content height in percent?
Is there possible that you can specify height in percents and not only pixels for md-content?
For example:
This works:
<md-content class="md-padding" style="height: 200px;">
This doesn't work:
<md-content class="md-padding" style="height: 30%;">
Thank you for your help!
@Superlukec – In the meantime you might be able to get away with 30vh if your percentage is viewport-relative.
Might also be worth trying layout-fill on the md-content, and a wrapper div if necessary
@Superlukec you have a CSS problem here. Make sure your content's parent has a height defined.
http://css-tricks.com/almanac/properties/h/height/
I see the issue has been closed, however I am still having this problem for a column style layout; if I set the style for the md-content in px, it works fine, however if I set it in %, I never get a vertical scrollbar. Any thoughts?
Same here
Same issue
Wrap md-content with a div with the desired height, and then set md-content with "height: inherit;"
same issue. parent wrapper div with an md-content gets no scrollbar.
div(style='height:100%;') md-content(flex='')
Same here. <md-content md-scroll-y> takes height of the content and overflows viewport
Here is a quick fix for the issue: http://codepen.io/topherfangio/pen/epOvBd?editors=110
Basically, you need to add the following so that the flex on the md-content renders properly:
.layout {
height: inherit;
}
We are looking at adding this at a framework level but need to make sure that there are no unintended consequences.