Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5904] iOS: TableViewRow disappears after being quickly scrolled off and on screen

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2011-11-07T17:01:53.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-44
ComponentsiOS
Labelsregression
ReporterDustin Hyde
AssigneeStephen Tramer
Created2011-10-28T16:39:07.000+0000
Updated2012-01-11T10:37:25.000+0000

Description

TableViewRow disappears after being quickly scrolled off and on screen. Does not happen in 1.7.4 or iOS. 1. Create app with script:
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow();
var rows = [];
for (var i = 0; i < 200; i++) {
    rows[i] = Titanium.UI.createTableViewRow({className:'test'});
    rows[i].add(Titanium.UI.createLabel({text:'row ' + i}));
}
var table = Titanium.UI.createTableView({data:rows});
win.add(table);
win.open();
2. launch app on device 3. fast scroll the table a few times, it happens roughly 4 out 10 times [see screenshot] Results: the rows closer to the bottom of the screen fail to render when they return to view Expected: the rows should all redraw

Attachments

FileDateSize
tableviewrow fast scroll disappear.png2011-10-28T16:39:07.000+000033739

Comments

  1. Christian Cox 2011-10-29

    +1 on getting this bumped up and fixed. You can also view this behavior by slightly modifying the Kitchen Sink example "table_view_layout_2.js". Remove all the content from each row with the exception of the user label. Change the height of the row to 40. If the row height is relatively tall and only a few rows can be seen on the screen at once, the behavior is limited. On shorter rows, the behavior is much more prevalent.
  2. Qing Gao 2011-11-07

    I tried it with 1.8.0.v20111106143455. It seems like this bug has been fixed. If so, shall we close this ticket?
  3. Stephen Tramer 2011-11-07

    Cannot reproduce as of 1.8.0.070df91 on iPhone 4S w/iOS 5.0, or iPhone Sim 5.0/4.3.
  4. Michael Pettiford 2012-01-11

    Closing issue due to not being able to reproduce Tested with Ti Studio 1.0.8.201201101928 Ti Mob SDK 1.8.0.1 OSX Lion iPod Touch OS 4.3.3, iPad 2 OS 5.0.1

JSON Source