fixed updateHeightPolicy stuff for iOS