[TIMOB-9101] iOS: Titanium.TabGroup - Navbar comes in partial size after orientation is changed
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-05-21T10:34:41.000+0000 |
| Affected Version/s | Release 2.0.2, Release 1.8.1 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | api, qe-ios050912 |
| Reporter | Tamila Smolich |
| Assignee | Neeraj Gupta |
| Created | 2012-05-10T16:46:54.000+0000 |
| Updated | 2017-03-09T22:48:35.000+0000 |
Description
Description:
Navbar comes in partial size after orientation is changed from portrait to landscape mode.
This bug also exists on 2.0.1, 1.8.1 and 2.1.0
Steps to reproduce:
1. Run the following code on iPad:
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff',
barImage:'nav_bg.png',
tabBarHidden:true
});
var button = Ti.UI.createButton({
title:'open',
width:100,
height:50
});
button.addEventListener('click', function() {
//win2.open();
tabGroup.activeTab.open( win2 );
})
win1.add(button);
var win2 = Titanium.UI.createWindow({
title:'Tab 2',
backgroundColor:'#fff',
barImage:'nav_bg_2.png',
});
var tab1 = Titanium.UI.createTab({
title:'Tab 1',
window:win1
});
tabGroup.addTab(tab1);
// open tab group
tabGroup.open();
2. Rotate device to landscape mode
Expected result:
The navbar should fill all width of the page
Actual result:
Navbar comes in partial size (see attachments)
Attachments
| File | Date | Size |
|---|---|---|
| Screenshot_tab1.png | 2012-05-10T16:46:54.000+0000 | 61758 |
| Screenshot_tab2.png | 2012-05-10T16:46:54.000+0000 | 62856 |
Closing ticket as duplicate.