Fix for iOS 7 input view height calculation, thanks to @sanjerali