Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23643] Android: Ti.UI.ScrollView never fires postlayout event

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2017-08-11T10:57:21.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.2.0
ComponentsAndroid
Labelsn/a
ReporterChristopher Williams
AssigneeGary Mathews
Created2016-07-14T20:30:03.000+0000
Updated2017-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

Comments

  1. Gary Mathews 2016-09-03

    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();
       
  2. Andy Waldman 2017-03-10

    I agree with Gary I could not reproduce this.
  3. Eric Merriman 2017-08-08

    [~lchoudhary] Please try to reproduce and let me know.
  4. Lokesh Choudhary 2017-08-08

    [~emerriman], Could not reproduce the issue with 6.1.2.GA
  5. Gary Mathews 2017-08-11

    Cannot reproduce, resolving as invalid.
  6. Lokesh Choudhary 2017-08-17

    Closing as invalid.

JSON Source