Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25178] Windows : removeAllChildren() method of ScrollView does not work

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-09-08T13:39:43.000+0000
Affected Version/sRelease 6.1.2
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsn/a
ReporterNeeraj Mishra
AssigneeKota Iguchi
Created2017-08-16T23:29:26.000+0000
Updated2017-10-04T14:35:14.000+0000

Description

Description:

When removeAllChildren() method of Ti.UI.ScrollView is called, contents of the ScrollView are not cleared in Windows.

Steps to Replicate:

1. Run the attached sample Alloy project. 2. Click anywhere on the screen 3. Red block will keep adding to the view on every click. On ScrollView click event, removeAllChildren method is called on ScrollView and a view with backgroundColor red is added to the ScrollView in index.js. Instead of removing the one that is already in the ScrollView, new View is being added on every click.

Expected Result:

removeAllChildren() method should remove all child views of ScrollView container on click event.

Attachments

FileDateSize
index.js2017-08-16T23:28:58.000+0000228
index.tss2017-08-16T23:29:09.000+0000155
index.xml2017-08-16T23:29:03.000+0000151

Comments

  1. Kota Iguchi 2017-08-22

    https://github.com/appcelerator/titanium_mobile_windows/pull/1083
  2. Kota Iguchi 2017-09-07

    backports for 6.2.0: https://github.com/appcelerator/titanium_mobile_windows/pull/1097
  3. Ewan Harris 2017-09-14

    Verified in 6.2.0.GA and 7.0.0.v20170912234515

JSON Source