Fix scroll offset issue in chat view.