I would like to make a layout with a toolbar fixed on top, with two side-by-side content scrollable sections on the bottom.
I can correctly create this layout when the md-content
s are only nested under one div
.
Example (CodePen):
<body ng-app="app" layout="column">
<md-toolbar class="md-whiteframe-z4">Toolbar</md-toolbar>
<div layout="column" flex>
<md-content layout flex>
<md-content flex="50" layout="column">
<md-content flex="50" layout="column">
However, if I nested md-content
under two or more div
s this breaks the layout and causes the content to overflow out and causes the entire page to be scrollable.
Example (CodePen):
<body ng-app="app" layout="column">
<md-toolbar class="md-whiteframe-z4">Toolbar</md-toolbar>
<div layout="column" flex>
<div layout="column" flex>
<md-content layout flex>
<md-content flex="50" layout="column">
<md-content flex="50" layout="column">
What's going on? How can I create a scrollable md-content
when it is inside a nested layout?