I am currently working with this div container setup:
<div class="col-md-8 grid-wrapper-div chatHistory">
...
</div>
Here is the CSS associated with it:
.chat .chatHistory {
overflow-y:scroll;
height: 550px;
}
If the page loads, I want the scroll bar to be at the bottom. I am using AngularJS for this functionality. Is there a way to achieve this using CSS or AngularJS?
[EDIT]
I have attempted the following method but chatHistoryContainer.scrollHeight is showing as undefined. Can anyone offer insight into why? https://i.sstatic.net/5SB4w.png