Titanium Community Questions & Answer Archive

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

auto height table views break with shortish text

KitchenSink 1.1 illustrates this issue. In table_view_api_auto_height.js, changing row:

addRow(0,'This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.  This is some long text.');

to something like:

addRow(0,'This is some long text.  This is some long text.');

results in incorrect left padding on the row. See screenshot:

screenshot

— asked March 29th 2010 by Chris Sternal-Johnson
  • auto-height
  • iphone
  • mobile
0 Comments

1 Answer

  • Accepted Answer

    most likely you've not set the width. can you paste your table view row code to give us an idea of your properties?

    also, set your textAlign property to left if you want it to anchor left.

    — answered March 30th 2010 by Jeff Haynie
    permalink
    0 Comments
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.