Seeking a solution for implementing a simple chat using the md-list template. The issue arises when new items are added to the md-list, causing it to expand.
Desiring the list to behave similarly to other chat platforms, where the height remains constant regardless of the number of items, and allows users to scroll to view older messages.
Currently, the following CSS has been applied:
md-list{
overflow-y: scroll;
}
The chat container has also been set to a max-height value, however, the list continues to grow beyond the parent element's boundaries.
Initially, the parent and chat are set to 400px in height. Upon adding messages, the parent maintains the 400px height, while the chat expands with each new message.
How can this issue be resolved? Attempts to set max-height equal to the initial chat height have proven ineffective.
Any suggestions?