UILabel adjustsFontSizeToFitWidth causes Truncation
Originator: | adam | ||
Number: | rdar://9909508 | Date Originated: | 06-Aug-2011 10:54 AM |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | iOS 5 Beta 4 |
Classification: | 2 - Important | Reproducible: | YES |
06-Aug-2011 10:54 AM Adam McNamara: Summary: Two related defects: 1. UILabel adjustsFontSizeToFitWidth caused tail truncation on text that did not require it. 2. UILabel adjustsFontSizeToFitWidth did not adjust the font size on the label, just caused tail truncation. Steps to Reproduce: 1. Create a UILabel 2. Set adjustsFontSizeToFitWidth = YES; 3. Set label.text = @"A large but not too long string"; 4. Observe that the end of the string may be tail truncated on iOS 5, but not iOS 4.3 Expected Results: If there is room for the text, the UILabel should reduce its font size, not truncate the tail end of the string. Actual Results: The UILabel was tail truncated and the font size was not reduced. Regression: Notes:
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!