[TIMOB-6836] MobileWeb: ScrollableView does not support direct setting of the 'views' property. Views set directly will not get added to the DOM parent.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-16T12:05:08.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Sprint 2012-01, Release 2.0.0, Release 1.8.1 |
Components | MobileWeb |
Labels | n/a |
Reporter | Anthony Decena |
Assignee | Chris Barber |
Created | 2011-12-21T16:30:05.000+0000 |
Updated | 2017-03-03T23:21:37.000+0000 |
Description
If you try to directly set the views property of a ScrollableView, the views are not added to the ScrollableView DOM node. ie:
var scrollable = Ti.UI.createScrollableView({views:[]}),
views = [];
views[1] = Ti.UI.createView({width:50,height:50});
views[2] = Ti.UI.createView({width:50,height:50});
scrollable.views = views;
None of the views will be added to the DOM parent as they need to be passed into ScrollableView.addView in order to be set correctly.
This was fixed as apart of TIMOB-6772 (class hierarchy reorg).
Closing ticket as MobileWeb is no longer supported.