Titanium Community Questions & Answer Archive

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

Using percentages to set sizes

Having a problem. Can't seem to use percentages to set sizes.

For example, I can't seem to set a textField's width as 100%.

How would I do this?

— asked July 26th 2010 by Alexander Stone
  • design
  • layout
  • percentage
  • style
0 Comments

1 Answer

  • Accepted Answer

    text_field.width = '100%'
    

    not

    text_field.width = 100%
    
    — answered July 26th 2010 by Dan Tamas
    permalink
    1 Comment
    • well now I feel stupid. I was doing that and it wasn't working. I forgot the ' on the other side :\

      — commented July 26th 2010 by Alexander Stone
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.