Currently, I am utilizing the most recent version of Angular Material (1.0.0) library and I am attempting to ensure that my <md-sidebar>
panel occupies the entire height of the available space on the webpage.
While it functions correctly on a regular page without the use of ui-router, once ui-router
is implemented, the sidebar fails to stretch to full length and instead only accommodates the necessary space for its elements.
It seems that the presence of the <ui-view>
element generated by ui-router
is the root of this problem. Upon manual removal of this tag, the sidebar successfully extends to fill the entire length.
I have attempted to follow suggestions from prior versions of the Angular Material library:
- Apply
height: 100%
to the.ng-scope
class - Include
flex
andlayout-fill
classes within the<ui-view>
element
Unfortunately, none of these approaches have proven successful. How can we ensure that the sidebar takes up the entire available height?
I have developed a Plunker example showcasing the problem