[TIMOB-19251] Windows: Tabs added using the TabGroup property are not rendered
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-08-12T16:19:40.000+0000 |
Affected Version/s | Release 4.1.0, Release 5.0.0 |
Fix Version/s | Release 5.0.0 |
Components | Windows |
Labels | n/a |
Reporter | Benjamin Hatfield |
Assignee | Kota Iguchi |
Created | 2015-07-24T17:56:51.000+0000 |
Updated | 2015-08-20T22:10:29.000+0000 |
Description
Run the sample code below in the Windows emulator. (I used the Emulator 8.1 WVGA 4 inch 512MB.)
RESULTS:
Application does not display any content--only a black screen.
OTHER INFO:
The addTab method works. The console outputs that the tabs were added to the tabGroup object.
{noformat}
var win1 = Ti.UI.createWindow({
backgroundColor: 'blue',
title: 'Blue'
});
win1.add(Ti.UI.createLabel({text: 'I am a blue window.'}));
var win2 = Ti.UI.createWindow({
backgroundColor: 'red',
title: 'Red'
});
win2.add(Ti.UI.createLabel({text: 'I am a red window.'}));
var tab1 = Ti.UI.createTab({
window: win1,
title: 'Blue'
}),
tab2 = Ti.UI.createTab({
window: win2,
title: 'Red'
}),
tabGroup = Ti.UI.createTabGroup({
tabs: [tab1, tab2]
});
//tabGroup.addTab(tab1);
//tabGroup.addTab(tab2);
tabGroup.tabs = [tab1, tab2];
tabGroup.setTabs([tab1, tab2]);
tabGroup.open();
Ti.API.info(tabGroup.tabs);
{noformat}
https://github.com/appcelerator/titanium_mobile_windows/pull/399
Verified the fix. Closing. Environment: Appc Studio: 5.0.0.v20150819140421 Ti SDK: 5.0.0.v20150820100424 Ti CLI: 4.1.4 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.2.0-1 APPC CLI: 5.0.0-8 Node : v0.10.37 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1