Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4196] ScrollableView losing tableViews in 1.7 Regression

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-05-31T09:47:06.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-21
ComponentsiOS
Labelsn/a
ReporterAlan Leard
AssigneeBlain Hamon
Created2011-05-24T09:18:01.000+0000
Updated2011-06-09T10:39:34.000+0000

Description

Regression issue from 1.6.3 to 1.7. A scrollableView with tableViews will lose the tableViews when you scroll right and then scroll back. Row data is lost. Here is a code sample that works in 1.6.2 or 1.6.3, but breaks in 1.7.
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({  
    title:'Test', backgroundColor:'#fff', fullscreen: true
});

var views = [];
for (var i = 0; i < 5; i++) {
    views.push(
        Ti.UI.createTableView({
            data: [ Ti.UI.createTableViewRow({title: 'Row for view ' + i}) ]
        })
    );
}
var scrollable = Ti.UI.createScrollableView({ views: views });
win.add(scrollable);
win.open();

Comments

  1. Blain Hamon 2011-05-24

    See related bugs TIMOB-3743 and TIMOB-4062
  2. Natalie Huynh 2011-05-25

    Tested with May 25 2011 16:19 r364c307e view starts on Row for view 3
  3. Blain Hamon 2011-05-25

    The table views were being mislaid in bad places when it was autosizing.
  4. Eric Merriman 2011-05-31

    No longer reproducible with the following devices: Verizon iPhone 4 (4.2.6), iPad 1 (4.3), iPhone 3GS (3.1.2) , Titanium Studio, build: 1.0.0.201105271818, Titanium SDK version: 1.7.X r566ab19b. Closing.

JSON Source