Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9101] iOS: Titanium.TabGroup - Navbar comes in partial size after orientation is changed

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2012-05-21T10:34:41.000+0000
Affected Version/sRelease 2.0.2, Release 1.8.1
Fix Version/sn/a
ComponentsiOS
Labelsapi, qe-ios050912
ReporterTamila Smolich
AssigneeNeeraj Gupta
Created2012-05-10T16:46:54.000+0000
Updated2017-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

FileDateSize
Screenshot_tab1.png2012-05-10T16:46:54.000+000061758
Screenshot_tab2.png2012-05-10T16:46:54.000+000062856

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as duplicate.

JSON Source