Leave the chat window within the screen

On smaller screens, the top of the chat window can appear so high that it is outside the screen, this fixes that.
Merge pull request #1949 from filipsalpe/master

Leave the chat window within the screen