stop the dialog from jumping vertically