[TIMOB-11179] Android: TableView - Postlayout table event not fired on Android
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-09-26T21:44:33.000+0000 |
| Affected Version/s | Release 2.1.3 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | parity, qe-and090112 |
| Reporter | Tamila Smolich |
| Assignee | Ingo Muschenetz |
| Created | 2012-09-26T21:32:39.000+0000 |
| Updated | 2014-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.
Sorry, just found the same issue. Closing my bug as a duplicate of TIMOB-9640.