Mobile Chat Application

Hi Does anyone have experience solving the dynamic height issue of a repeating group in a chat application? I have read the below link but have not found a solution. To be more clear the problem I am having is that when users view a typical chat if I set the chats repeating group height to 512px it will leave a big space on phones that are 800px+ tall. If i set the group height to 800px users can not see some entries on the repeating group.

This was the thread i viewed without a solution.