Fix the SimpleModal diaglog under iOS (see #6028)