Add a maxHeight to the dialog