Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11179] Android: TableView - Postlayout table event not fired on Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-09-26T21:44:33.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sn/a
ComponentsAndroid
Labelsparity, qe-and090112
ReporterTamila Smolich
AssigneeIngo Muschenetz
Created2012-09-26T21:32:39.000+0000
Updated2014-06-19T12:42:44.000+0000

Description

Description: Postlayout table event not fired on Android and alert "postlayout table event fired" does not appear as well. This is not a regression, occurs on 2.1.2. Steps: 1. Run the following code and check the console:
var win = Ti.UI.createWindow({
    backgroundColor:'white',
    title:'test',
    modal:true
});
   
var data1 = [];
   
var tvr = Ti.UI.createTableViewRow({
    title:'pippo',
    hasChild:true
});
data1.push(tvr);
   
var table = Ti.UI.createTableView({
    top: 10,
    left: 10,
    width: 200, 
    height: 200,
    scrollable: false,
    borderRadius: 10,
    backgroundColor: 'white',
    data : data1
});
table.addEventListener('postlayout', function() {
    setTimeout(function(){
        Ti.API.info('#### postlayout table event received.');
        alert('postlayout table event fired');
    },600);
});
win.add(table);
   
win.open();
Expected result: Postlayout table event should be fired. Actual result: Postlayout table event not fired and alert does not appear.

Comments

  1. Tamila Smolich 2012-09-26

    Sorry, just found the same issue. Closing my bug as a duplicate of TIMOB-9640.

JSON Source