[TIMOB-25178] Windows : removeAllChildren() method of ScrollView does not work
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-09-08T13:39:43.000+0000 |
Affected Version/s | Release 6.1.2 |
Fix Version/s | Release 6.2.0 |
Components | Windows |
Labels | n/a |
Reporter | Neeraj Mishra |
Assignee | Kota Iguchi |
Created | 2017-08-16T23:29:26.000+0000 |
Updated | 2017-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
File | Date | Size |
index.js | 2017-08-16T23:28:58.000+0000 | 228 |
index.tss | 2017-08-16T23:29:09.000+0000 | 155 |
index.xml | 2017-08-16T23:29:03.000+0000 | 151 |
https://github.com/appcelerator/titanium_mobile_windows/pull/1083
backports for 6.2.0: https://github.com/appcelerator/titanium_mobile_windows/pull/1097
Verified in 6.2.0.GA and 7.0.0.v20170912234515