Titanium Community Questions & Answer Archive

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

Grouped Table View, incorrect text wrapping

I am having problems with text correctly wrapping when using a grouped table display. The following example (~50 lines of code) highlights the problem:


Notice that the third line extends past the boundary, and the fourth line is truncated with "…" rather than wrapped to a new line. I can fiddle with things by adding or removing characters, but this problem keeps popping up. Is it a bug, or am I incorrectly specifying the left/right/top/bottom padding?

I am using 1.3.2 and iPhone SDK 4.0.

— asked July 21st 2010 by Mike Dosey
  • 1.3.2
  • 4.0
  • grouped
  • table
  • text
  • view
  • wrap

4 Answers

  • It amazes me that bugs this basic still exist in Titanium. Does no one else notice this problem? Or is everyone explicitly specifying their row width and just ditching landscape view mode?

    — answered December 11th 2010 by Mike Dosey
  • I believe I have experienced this bug as well…..typically I get around it by adding new line characters to the end of my string such as 'text….text\n\n' and it usually does a little better, though not always perfect.

    — answered July 22nd 2010 by Mike Robinson
  • Hmm, the newline seems to keep it from truncating the text, but if I explicitly insert newline characters at the end of each line, the text won't adjust properly for landscape mode. And either way, the text still extends beyond the right border :(

    — answered July 23rd 2010 by Mike Dosey
  • Try to remove top/left/bottom/right form the label and see if it's working.

    It seems you want a padding, and if so you could try to set a


    to the label :)

    — answered July 23rd 2010 by Dan Tamas
    1 Comment
    • Titanium doesn't seem to treat the border as padding - it just overlaps the text when I tried this. I appreciate the suggestion, though.

      — commented July 23rd 2010 by Mike Dosey
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.