fixes #18317, display jumping on iOS8

(cherry picked from commit 930cfcdacf4c6e3e983fea8541af7e262ddc735f)