[TIMOB-16835] BlackBerry: Ti.UI.View getChildren returns empty array
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Hold |
Resolution Date | 2015-04-14T17:12:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | blackberry, look1 |
Reporter | Steven Saracut |
Assignee | Pedro Enrique |
Created | 2014-04-08T11:59:56.000+0000 |
Updated | 2017-03-16T20:22:14.000+0000 |
Description
Following code outputs:
[INFO] button1 type: [object TiUIButtonProxy]
[INFO] children : []
var mainWindow = Titanium.UI.createWindow({
backgroundColor: 'red',
title: 'Red Window'
});
// Create a Button.
var button1 = Ti.UI.createButton({
title : 'button1',
height : Ti.UI.SIZE,
width : Ti.UI.SIZE
});
Ti.API.info("button1 type: " + button1);
// Add to the parent view.
mainWindow.add(button1);
// Listen for click events.
button1.addEventListener('click', function() {
Ti.API.info('\'button1\' was clicked! : pre-eventListener');
});
Ti.API.info('children : ' + JSON.stringify(mainWindow.getChildren()));
Actually looking deeper in the code, how come Ti.UI.Window doesn't extend Ti.UI.View like android and ios which is how the API is documented? I guess this explains the ticket I opened a while ago about the scrollview not taking a window like ios and android.
Since it appears to be working as expected, can we resolve?
Placing these items on hold for the moment based on community interest.
Closing ticket as BlackBerry is no longer supported by us.