This is how my html/css looks like.
.question-list-wrapper {
height: calc(98vh - 35rem);
overflow: auto;
padding: 15px;
}
.question-input-wrapper {
margin-top: 10px;
display: inline-flex;
width: 100%;
position: absolute;
bottom: 20px;
}
<div>
<div class="question-list-wrapper">
// consist of list of Questions.
</div>
<div class="question-input-wrapper">
// consist of input to post a Question.
<textarea placeholder="Write Question..." (keyup)="autoGrow()"></textarea>
</div>
</div>
Now what exactly I want to do is to resize sibling height(question-list-wrapper) based on height of other sibling(question-input-wrapper), keeping parent height constant?
Here height of text-area grows based on content length, and I want height of question-list-wrapper to reduce when height of text-area increases.
I have also attached the snapshot for better understanding.