Fixes possibly endles while-loop in comment-field
Fixes possibly endles while-loop in comment-field

In some edge-cases it was possible that the while-loop that adapted the
height of the comment field to the contents height went berserk and
extended the height indefinitely. This commit changes that loop to one
single function call so it will not be able to run indefinitely and
leave the browser unresponsive.

Thanks to Elizabeth Smith for finding the issue and testing the fix.

Fixes JOINDIN-713

asgrim/joindin-web2,akrabat/joindin-web2,cal-tec/joindin-web2,heiglandreas/joindin-web2,dstockto/joindin-web2,dstockto/joindin-web2,aenglander/joindin-web2,heiglandreas/joindin-web2,joindin/joindin-web2,aenglander/joindin-web2,asgrim/joindin-web2,asgrim/joindin-web2,railto/joindin-web2,liam-wiltshire/joindin-web2,railto/joindin-web2,akrabat/joindin-web2,heiglandreas/joindin-web2,liam-wiltshire/joindin-web2,heiglandreas/joindin-web2,aenglander/joindin-web2,joindin/joindin-web2,liam-wiltshire/joindin-web2,joindin/joindin-web2,aenglander/joindin-web2,liam-wiltshire/joindin-web2,dstockto/joindin-web2,cal-tec/joindin-web2,railto/joindin-web2,cal-tec/joindin-web2,asgrim/joindin-web2,akrabat/joindin-web2,akrabat/joindin-web2,dstockto/joindin-web2,railto/joindin-web2,cal-tec/joindin-web2,joindin/joindin-web2