[TIMOB-9346] MobileWeb: ScrollableView with no views causes error on swipe
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-06-05T11:06:42.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Bryan Hughes |
Created | 2012-06-02T02:48:19.000+0000 |
Updated | 2014-01-28T23:48:58.000+0000 |
Description
There's a bug in ScrollableView where if it doesn't have any views, the swipe event causes _add() to get fired a ton and error when trying to set view._hidden = hidden.
var win = Ti.UI.createWindow({
backgroundColor: "#fff"
});
win.open();
var sv = Ti.UI.createScrollableView({
left: 20,
top: 20,
bottom: 20,
right: 20,
backgroundColor: "yellow"
});
win.add(sv);
This will be resolved when we rework scrollableview in TIMOB-8355. The bug is in some code that is going away.