[TIMOB-1126] adjustsFontSizeToFitWidth not working correctly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T02:44:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | adjustsfontsizetofitwidth, defect, ios, iphone |
Reporter | ctredway |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:44:45.000+0000 |
Updated | 2017-03-02T19:21:52.000+0000 |
Description
See this ticket for the thread. The font only shrinks twice and then stops, even when a minimum size is set.
http://helpdesk.appcelerator.net/tickets/3018">http://helpdesk.appcelerator.net/tickets/3018
This is how minimumFontSize (which is the only property you need to set; see the documentation) is supposed to work. Font sizing does not occur except at supported font size values, and scaling will depend upon what the initial font size and what the minimum font size are.
I will leave this ticket open until I can read the helpdesk ticket to ensure that there should be two font size steps and then invalidate.
Checked KS -> Controls -> Text Field -> The Rest font resizing. This resizes in 4 steps, which is appropriate (14 -> 12 -> 10 -> 8) and means that font resizing works as expected. It may also be that their label/field width is so large (or small) that an appropriate number of font resizes will not take place. This is dependent on the internal system and not something we have control over.
It is worth pointing out that
fontSize:'auto'
is meaningless. You need to specify an initial font size.adjustsFontSizeToFitWidth
is also meaningless, specifying a minimum font size automatically turns on font size width adjustment.Again, see the documentation.
Closed as invalid.