[TIMOB-4196] ScrollableView losing tableViews in 1.7 Regression
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-31T09:47:06.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Sprint 2011-21 |
Components | iOS |
Labels | n/a |
Reporter | Alan Leard |
Assignee | Blain Hamon |
Created | 2011-05-24T09:18:01.000+0000 |
Updated | 2011-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();
See related bugs TIMOB-3743 and TIMOB-4062
Tested with May 25 2011 16:19 r364c307e view starts on Row for view 3
The table views were being mislaid in bad places when it was autosizing.
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.