[TIMOB-16136] iOS: TabGroup doesn't adapt its width to screen's width after orientation change
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | orientation, tabgroup |
Reporter | Matej |
Assignee | Unknown |
Created | 2014-01-03T15:47:29.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
tabGroupBug.mov | 2014-01-03T15:47:29.000+0000 | 2869733 |
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.
This is still the case with sdk 5.5.1. Any fix or workaround for it? Thanks!