Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6431] iOS: Blank Row Regression

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-05T09:36:11.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-48, Release 1.8.0.1
ComponentsiOS
Labelsmodule_tableviewrow, qe-testadded, regression
ReporterDawson Toth
AssigneeSabil Rahim
Created2011-12-02T10:00:57.000+0000
Updated2014-06-19T12:42:43.000+0000

Description

Problem

Blank rows appear in the table view. This regression is present in builds from today, back to around the 29th (the environment contains more specific information on which ones).

How to Reproduce

1. Drop the following in an app.js 2. Run in iPad simulator 3. Drag the table view around; the quickest way to reproduce is to bounce at the top of the table view
var win = Ti.UI.createWindow({
    backgroundColor: '#ccc'
});

var data = [];
for (var i = 0; i < 200; i++) {
    var row = Ti.UI.createTableViewRow({
        hasChild: true
    });
    row.add(Ti.UI.createLabel({
        height: 24, top: 3, left: 34,
        text: 'Row ' + i,
        font: {
            fontFamily: 'Helvetica Neue',
            fontSize: 18,
            fontWeight: 'bold'
        }
    }));
    row.add(Ti.UI.createLabel({
        height: 20, top: 24, left: 34,
        text: 'Subtitle for ' + i,
        font: {
            fontFamily: 'Helvetica Neue',
            fontSize: 14,
            fontWeight: 'normal'
        }
    }));
    row.add(Ti.UI.createLabel({
        height: 24, width: 60, top: 10, right: 10,
        textAlign: 'right',
        text: i,
        font: {
            fontFamily: 'Helvetica Neue',
            fontSize: 18,
            fontWeight: 'bold'
        }
    }));
    data.push(row);
}

win.add(Ti.UI.createTableView({
    style: Ti.UI.iPhone.TableViewStyle.GROUPED,
    data: data
}));

win.open();

Video of Behavior

http://www.youtube.com/watch?v=ALMe0VsBXWQ

Comments

  1. Sabil Rahim 2011-12-02

    pull pending #815
  2. Michael Pettiford 2011-12-05

    Tested with studio 1.0.7.201112041107 Ti Mob SDK 1.8.0.1.v20111205011857 OSX Lion iPad/iPhone 5.0 Simulator, iPhone 4S OS 5.0.1, iPod Touch OS 4.3.5, iPad 2 OS 4.3.5 Expected behavior of no blank rows is shown
  3. Dawson Toth 2011-12-05

    Confirmed in client application as well; looks good.
  4. Dustin Hyde 2012-01-05

    Added label qe-testadded.

JSON Source