Manages the height of the chat-messages div depending of the surrounding elements.