Fix content height detection on iOS.