Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[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 Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-01-16T12:05:08.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
ComponentsMobileWeb
Labelsn/a
ReporterAnthony Decena
AssigneeChris Barber
Created2011-12-21T16:30:05.000+0000
Updated2017-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.

Comments

  1. Chris Barber 2012-01-16

    This was fixed as apart of TIMOB-6772 (class hierarchy reorg).
  2. Lee Morris 2017-03-03

    Closing ticket as MobileWeb is no longer supported.

JSON Source