Recalculate height of chat logs container before scrolling to bottom.