Fix dialog appearing off-centered with keyboard active on the iPad