[TIMOB-23643] Android: Ti.UI.ScrollView never fires postlayout event
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2017-08-11T10:57:21.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.2.0 |
| Components | Android |
| Labels | n/a |
| Reporter | Christopher Williams |
| Assignee | Gary Mathews |
| Created | 2016-07-14T20:30:03.000+0000 |
| Updated | 2017-08-17T01:10:10.000+0000 |
Description
Ti.UI.ScrollView should fire a postlayout event just like most of the other Ti.UI.View subclasses do. It never does, so any UI tests we have relying on post layout listeners time out on Android.
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ScrollView-event-postlayout
I can't reproduce this, it seems to work fine?
var win = Ti.UI.createWindow({backgroundColor: 'blue'}), sv = Ti.UI.createScrollView({backgroundColor: 'red'}); sv.addEventListener('postlayout', function() { Ti.API.info('scrollView: postLayout'); sv.backgroundColor = 'green'; }); win.add(sv); win.open();I agree with Gary I could not reproduce this.
[~lchoudhary] Please try to reproduce and let me know.
[~emerriman], Could not reproduce the issue with 6.1.2.GA
Cannot reproduce, resolving as invalid.
Closing as invalid.