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.
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?
-
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.
-
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 :(
-
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
borderColor:'fff'; borderwidth:10;
to the label :)