Если родительский контейнер будет иметь высоту 100% - у вас не будет полосы прокрутки, и если это дочерний элемент будет иметь 70%, если он является родителем - то же самое происходит.
Если вы родительский контейнер фиксированной высоты, вы будете иметь их как прокручивается:
<div style="overflow-y: auto; padding: 10px; border: 1px solid red; height: 500px;">
<div layout="column">
<h3 style="margin: 5px">Header 1</h3>
<h3 style="margin: 5px">Header 2</h3>
</div>
<div layout="column" layout-align="center center" style="height: 100%">
<div layout="column" layout-align="center center" style="width: 70%; height: 100%; overflow-y: auto;border: 1px solid blue;">
<div layout="column" style="width: 100%">
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
</div>
</div>
</div>
</div>
Если вы не хотите использовать конкретные пиксели можно использовать вместо vh
(видовой экран-высота)
<div style="overflow-y: auto; padding: 10px; border: 1px solid red; height: 100vh;">
<div layout="column">
<h3 style="margin: 5px">Header 1</h3>
<h3 style="margin: 5px">Header 2</h3>
</div>
<div layout="column" layout-align="center center" style="height: 100%">
<div layout="column" layout-align="center center" style="width: 70%; height: 100%; overflow-y: auto;border: 1px solid blue;">
<div layout="column" style="width: 100%">
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
This content could be any height but should start scrolling when it
gets larger than parent div
</div>
</div>
</div>
</div>
Я изменил родительскую высоту div на 100vh, но дочерний div с 'height =" 100% "' заканчивается большим, чем родительский div, и по-прежнему отображает только полосу прокрутки родительского div. –
Можете ли вы создать демонстрацию jsfiddle.net? – Dekel
О, у меня просто было что-то немного отличное от вашего примера. Сейчас он так благодарит вас! –