Looking to divide a row into three segments under the following conditions:
The first segment should have a maximum height and always stay at the top (minimum height of 0; maximum height of 40%). If the content exceeds the max-height, a scroll bar should appear.
The third segment needs to be positioned at the bottom with no fixed height. Its height should be based on its content.
The second segment must expand to fill 100% of the remaining height. A scroll bar should appear if the content is too large for the available height.
I have attempted to achieve this using the code found here: https://gist.github.com/anonymous/24809e7b981f4ca7e6fb. However, I am facing an issue where the middle/second segment expands all the way to the bottom, overlapping the third segment.
If anyone has any suggestions on how to resolve this problem, please let me know. Thank you.