Titanium Community Questions & Answer Archive

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

Wrap-Bug in Labels / TableView?

I'm using Titanium Mobile SDK 1.3.2 / Android 2.1 / Linux Ubuntu Host. Since my update from 1.3.0 to 1.3.2 I have the issue that some labels wrap although there is enough space left. It didn't wrap in 1.3.0.

I've this issue in a TableView. The third label does always wrap although other rows contains much more characters. 10 other rows are displayed very well in the same tableView.

I'm creating my tableview like this:

Titanium.UI.createTableView({data: rows,                                               separatorColor: '#eeeeee'});

A row is specified like this:

{title: 'domain.net',
 id:    5,
 name:  'site5',
 site:  site,
 color: '#333333'}

I have the same issue in another view where I just output a label. About 20 other labels in the same view looks great, but one label wraps after 5 characters.

Update: It is displayed well on my Android 2.1 Device but not in Android Emulator (tested 1.6 & 2.1)

— asked June 28th 2010 by Jicks Steen
0 Comments

6 Answers

  • Update: The Bug appears only in higher resolutions. It appears in Android with Screen WVGA800 but not in Screen HVGA

    — answered June 29th 2010 by Jicks Steen
    permalink
    0 Comments
  • I have this problem after upgrading too. Have you solve the problem?

    — answered June 29th 2010 by Peter Lum
    permalink
    0 Comments
  • i have this bug too, i can get rid of it by setting the width-property

    — answered June 29th 2010 by Christian Sigl
    permalink
    0 Comments
  • I added Ticket 1304 to track the problem.

    — answered July 15th 2010 by Don Thorp
    permalink
    0 Comments
  • I had this issue as well after updating. Try setting the width of the row to something like 400px. (quick fix until they get the bug resolved)

    {title: 'domain.net',
     id:    5,
     name:  'site5',
     site:  site,
     color: '#333333',
     width: 400}
    
    — answered July 19th 2010 by John Veldboom
    permalink
    0 Comments
  • I had this issue as well after updating. Try setting the width of the row to something like 400px. (quick fix until they get the bug resolved)

    {title: 'domain.net',
     id:    5,
     name:  'site5',
     site:  site,
     color: '#333333',
     width: 400}
    
    — answered July 19th 2010 by John Veldboom
    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.