UISearchBar.searchTextPositionAdjustment is useless with a horizontal value != 0

Originator:heath.borders
Number:rdar://13963273 Date Originated:
Status: Resolved:
Product:iPad SDK Product Version:iOS 6.1
Classification:Other Bug Reproducible:Always
 
22-May-2013 02:23 PM Heath Borders:
Summary:
UISearchBar doesn't adjust the width of the UISearchBar's inner UITextField when the searchTextPositionAdjustment causes the inner UITextField to overflow the UISearchBar bounds.

Steps to Reproduce:
1. Create a UISearchBar.
2. set searchTextPositionAdjustment
3. Run your app.
4. Type a bunch of text into the UISearchBar to until the UISearchBar starts to horizontally scroll.

Expected Results:

I should see the text horizontally scroll before the text is clipped on the right.

Actual Results:

The text is clipped on the right and disappears, then horizontally scrolls.

Regression:

Notes:

searchTextPositionAdjustment seems to only be used for vertical positioning when the UISearchBar is used with a non-standard height. Why not make it useful for more interesting widths as well?

Comments

Added Example Project

https://github.com/hborders/UselessSearchTextPositionAdjustment

By heath.borders at June 20, 2013, 2:04 p.m. (reply...)

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!