Fixed dialog error when scroll happens while dialog is in the middle of displaying content.