Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

minimumFontSize use in labels?

Hi, the KS example only shows use of minimumFontSize in a textfield. minimumFontSize is also listed as a property of Labels in the docs. However, it doesn't seem to work. Can anyone confirm/deny whether or not Labels support this property? (I have a label element which I dynamically assign the text; it would be great if it would auto size the font to fit the label's width property).


— asked July 7th 2010 by karlo kilayko
  • font
  • iphone
  • label
  • minimumfontsize
  • size

1 Answer

  • Accepted Answer

    This is supported for labels. It is important to set a width or both left & right properties for it to work though.

    I am having some trouble with it on Android right now, but iPhone works great.

    — answered September 29th 2010 by Mike Robinson
    1 Comment
    • Thanks Mike! Your info definitely helped, though I found I didn't necessarily have to set the left and right properties. Setting the width to a discrete value made it work. Too bad it won't wrap the text though ;)

      — commented September 30th 2010 by karlo kilayko
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.