Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13039] iOS: TableViewRow title text won't wrap

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsdefect, ios, parity, tableViewRow, titanbeta
ReporterShawn Lipscomb
AssigneeUnknown
Created2013-03-12T18:02:47.000+0000
Updated2018-02-28T20:03:54.000+0000

Description

Problem

A simple TableViewRow's title will not text wrap. Instead, it gets elipsized. In contrast, the same TableViewRow's title will wrap on Android, therefore, this is a parity issue.

Testcase

{panel:title=app.js}
var win1=Ti.UI.createWindow({
            backgroundColor:'#fff',
            layout:'vertical',
            navBarHidden:true,
            backgroundColor:'black'
         });

var MyListbox=Ti.UI.createTableView({backgroundColor:'white'});

for (var i=1; (i <= 3); i++)
  MyListbox.appendRow(Ti.UI.createTableViewRow({title:'This is a TableViewRow number '+i, hasDetail:true, height:Ti.UI.SIZE}));
  
win1.add(MyListbox);

win1.open();
{panel}

Attachments

FileDateSize
Screenshot_3_13_13_11_59_AM.png2013-03-13T19:00:46.000+0000374754

Comments

  1. Jamie Buckley 2013-03-12

    Tested on Android and iOS simulator, with the above code and with horizontal wrap enabled same results are shown. Tested on both 3.0.2 and 3.1.0
  2. Shawn Lipscomb 2013-03-13

    What does "and with horizontal wrap enabled" mean? I can send a screen shot showing the problem if need be (I don't seem to be able to attach an image to this ticket now, since there are comments on it).
  3. Jamie Buckley 2013-03-13

    I have verified the issue, horizontalWrap is a layout property, that determines whether the view has wrapping behaviour.
  4. Shawn Lipscomb 2013-03-13

    Just to clarify, when you said "same results are shown", you meant that you observed the results that I stated in the problem description, right? I just want to make sure you didn't the the "same results" in both Android and iPhone simulators.
  5. Jamie Buckley 2013-03-13

    Yes, I received the same results as your test.
  6. Ingo Muschenetz 2013-03-13

    @Shawn or @Jamie, can you post a link or attach an image (as appropriate)? If someone emails me the image, I can attach it. I think it would be helpful.
  7. Jamie Buckley 2013-03-13

    Screenshot Attached

JSON Source