UISearchBar results in bad insets when activated when partially obscured

Originator:SaagarJha28
Number:rdar://32629856 Date Originated:07-Jun-2017 03:48 PM
Status:Open Resolved:
Product:iOS + SDK (UIKit) Product Version:iOS 10.3 [14E8301]
Classification:UI/Usability Reproducible:
 
Area:
UIKit

Summary:
If the UISearchBar is partially obscured by the navigation bar (as can happen when the content fits the entire area between the navigation bar and the tab bar, or when trying to scroll the table view when it is not filling the whole area), tapping on it and cancelling results in an incorrect inset from the top equal to the height of the status bar.

Steps to Reproduce:
1. Have the UISearchBar partially obscured in some contexts.
2. Tap on it.
3. Press cancel to stop searching.

Expected Results:
The search bar's insets are correct.

Observed Results:
The insets aren't correct; it's shifted down too far.

Version:
iOS 10.3 [14E8301]

Notes:


Configuration:
iOS Simulator

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!