Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-2912

iOS: TableViewRow content disappear after window close and open

    Details

      Description

      {html}<div><p>Hi,<br>
      I have this problem on iphone simulator and latest development
      environment.<br>
      I have a window with a tableview (with custom tableViewRows) and a
      close button in the bottom.<br>
      When I first open the window everything shows up, but when I close
      the window and then open it again the content of the tableView
      disappear. I have the tableview with the lines row separators but
      with nothing is showing in the tableviewrows.<br>
      here is how I build the app.js you can test:</p>
      <pre>
      <code>Titanium.UI.setBackgroundColor('#333');

      var page2 = Titanium.UI.createWindow({ title:'page2', backgroundColor:'#fff' });

      var data = [];

      var listTable = Titanium.UI.createTableView({});

      for(var indice=0; indice<15; indice++) {

      var row = Titanium.UI.createTableViewRow();

      var img = Titanium.UI.createImageView({ image:'KS_nav_ui.png', width:50, height:50, left:0, top:0 });

      var label = Titanium.UI.createLabel({
      text:indice,
      font:{fontSize:14},
      textAlign:'center',
      borderColor:'black'
      });

      row.add(img);
      row.add(label);

      row.hasChild=false;
      row.height = 50;
      row.className = 'list';

      data.push(row);
      }

      listTable.bottom = 50;

      listTable.setData(data);

      page2.add(listTable);

      var b2 = Titanium.UI.createButton({ title:'CLOSE', bottom:5, height:40 });

      page2.add(b2);

      b2.addEventListener('click',function() { page2.close(); });

      var win = Titanium.UI.createWindow({ title:'win', backgroundColor:'#555' });

      var button = Titanium.UI.createButton({ title:'OPEN' });

      button.addEventListener('click',function()
      { page2.open(); });

      win.add(button);

      win.open();</code>
      </pre></div>{html}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                enricoluciano Enrico Luciano
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-2529
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration