Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1126] adjustsFontSizeToFitWidth not working correctly

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:44:46.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsadjustsfontsizetofitwidth, defect, ios, iphone
Reporterctredway
AssigneeReggie Seagraves
Created2011-04-15T02:44:45.000+0000
Updated2017-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

Comments

  1. Stephen Tramer 2011-04-15

    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.

  2. Stephen Tramer 2011-04-15

    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.

  3. Stephen Tramer 2011-04-15

    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.

  4. Lee Morris 2017-03-02

    Closed as invalid.

JSON Source