Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16136] iOS: TabGroup doesn't adapt its width to screen's width after orientation change

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelsorientation, tabgroup
ReporterMatej
AssigneeUnknown
Created2014-01-03T15:47:29.000+0000
Updated2018-02-28T20:03:16.000+0000

Description

TabGroup doesn't adapt its width to screen's width after orientation is changed in window without tabGroup (You can see that issue in attached video).
<Alloy>
	<TabGroup>
    	<Tab title="Tab 1" icon="tab_icons/0.png">
       		<Window id="win1" title="Win 1">
           		<Button onClick="openWindow">Open new window</Button>
            </Window>
    	</Tab>
            
   		<Tab title="Tab 2" icon="tab_icons/1.png">
        	<Window id="win2" title="Win 2"/>
    	</Tab>
    	
    	<Tab title="Tab 1" icon="tab_icons/2.png">
        	<Window id="win3" title="Win 3"/>
    	</Tab>
    </TabGroup>	
</Alloy>
"Window":{
    backgroundColor: "white",
    orientationModes: [Ti.UI.PORTRAIT]
}
$.index.open();

var openWindow = function(){
	var win = Ti.UI.createWindow({
		backgroundColor: "white",
		orientationModes: [Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT],
		tabBarHidden: true
	});
	
	$.index.activeTab.open(win);
};

Attachments

FileDateSize
tabGroupBug.mov2014-01-03T15:47:29.000+00002869733

Comments

  1. Ritu Agrawal 2014-01-07

    Moving this ticket to engineering as we can reproduce this issue with Titanium SDK 3.2.0 release. One window in the test case supports only portrait while other supports portrait and landscape. When you launch the application, it displays 3 tabs in the portrait mode correctly. You move to the next screen and then change the orientation. Move back to the previous screen and it switches back to portrait mode with only two tabs instead of three. Please take a look at the attached video.
  2. Javier Rayon 2017-04-25

    This is still the case with sdk 5.5.1. Any fix or workaround for it? Thanks!

JSON Source