I'm experimenting with AngularJS Material components and struggling with creating tabs.
Every time I add a tab, the content inside the child md-content element automatically gets a fixed height with a vertical scrollbar instead of adjusting its height based on the content.
I've attempted to override the CSS for the parent containers created by Angular, modifying heights, min-heights, and overflow properties, but nothing seems to remove the fixed height with scrollbar issue.
Any suggestions?
See an example here: http://codepen.io/anon/pen/BWzBGL.
HTML:
<body ng-app="tableApp">
<main>
<md-content>
<md-toolbar>
<div class="md-toolbar-tools">
<md-menu flex>
<md-button aria-label="Menu" class="md-icon-button" ng-click="$mdOpenMenu($event)">
<md-icon md-menu-origin class="material-icons"><span class="fa fa-bars fa-lg"></span></md-icon>
</md-button>
<md-menu-content width="3">
<md-menu-item>
<md-button ng-click="ctrl.menuItemClick($index)">
<div layout="row">
<p flex>Page One</p>
</div>
</md-button>
</md-menu-item>
<md-menu-item>
<md-button ng-click="ctrl.menuItemClick($index)">
<div layout="row">
<p flex>Page Two</p>
</div>
</md-button>
</md-menu-item>
<md-menu-item>
<md-button ng-click="ctrl.menuItemClick($index)">
<div layout="row">
<p flex>Page Three</p>
</div>
</md-button>
</md-menu-item>
</md-menu-content>
</md-menu>
<p>AngularJS Material Testing</p>
<md-menu md-position-mode="target-right target">
<md-button aria-label="Settings" class="md-icon-button" ng-click="$mdOpenMenu($event)">
<md-icon md-menu-origin class="material-icons"><span class="fa fa-gear fa-lg"></span></md-icon>
</md-button>
<md-menu-content width="3">
<md-menu-item>
<md-button ng-click="ctrl.menuItemClick($index)">
<div layout="row">
<p flex>Page One</p>
</div>
</md-button>
</md-menu-item>
<md-menu-item>
<md-button ng-click="ctrl.menuItemClick($index)">
<div layout="row">
<p flex>Page Two</p>
</div>
</md-button>
</md-menu-item>
<md-menu-item>
<md-button ng-click="ctrl.menuItemClick($index)">
<div layout="row">
<p flex>Page Three</p>
</div>
</md-button>
</md-menu-item>
</md-menu-content>
</md-menu>
</div>
</md-toolbar>
<md-tabs md-border-bottom>
<md-tab label="Tab One">
<md-content class="md-padding">
<h1 class="md-display-1">Tab One</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi...