Parsing msgs.height() as int since float values sometimes get returned in Chrome. This was fixed in order to get the scrolling to work in chrome.