I've encountered an issue while constructing a page with the GWT framework where setting an element's height to 100% doesn't work.
Consider the following structure:
<div id="main">
<div id="1">
<div id="2">
...
</div>
</div>
</div>
The main div cannot be altered since it belongs to the framework. Div 1 has the style display: flex;
, and Div 2 has the style
display: flex; flex-direction: column; height: 100%;
.
When inspecting with Chrome Developer Tools, setting the heights of main div and div 1 to 100% results in proper content height, otherwise not.
My question is, how can I achieve this without modifying the main div, given that I don't have permission to do so?