Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16476] iOS: Cannot hide Tab title when SplitWindow is inside a Tab

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2014-03-03T18:33:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDavide Cassenti
AssigneeIngo Muschenetz
Created2014-02-19T13:45:38.000+0000
Updated2017-03-23T22:43:01.000+0000

Description

Problem description

Adding a SplitWindow in a TabGroup does not allow to hide the title of the Tab.

Use case

The use case is to be able to have the following structure: TabGroup --| SplitWindow ----| NavigationWindow ----| NavigationWindow Previously it was possible to use the NavigationGroup directly in the TabGroup, but the recent change to NavigationWindow does not allow to do so. The use of SplitWindow inside TabGroup seems to be unsupported (from the doc), but it works fine, and recently an Alloy bug has been fixed to allow it (see ALOY-831).

Test code

index.js
function openMaster() {
	var win = Ti.UI.createWindow({
		title: "Master 2",
		backgroundColor: 'red'
	});
	$.master_win.openWindow(win);
}

function openDetail() {
	var win = Ti.UI.createWindow({
		title: "Detail 2",
		backgroundColor: 'green'
	});
	$.detail_win.openWindow(win);
}

$.index.open();
index.xml
<Alloy>
  <TabGroup>
    <Tab title="Tab 1" icon="KS_nav_ui.png">
      <SplitWindow id="splitWin" platform="ios" formFactor="tablet">
        <NavigationWindow id="master_win">
          <Window title="Master 1">
            <Label onClick="openMaster">Master</Label>
          </Window>
        </NavigationWindow>
        <NavigationWindow id="detail_win">
        	<Window title="Detail 1">
          	<Label onClick="openDetail">Detail</Label>
          </Window>
        </NavigationWindow>
      </SplitWindow>
    </Tab>
    <Tab title="Tab 2" icon="KS_nav_views.png">
      <Window title="Tab 2">
        <Label>I am Window 2</Label>
      </Window>
    </Tab>
  </TabGroup>
</Alloy>

Comments

  1. Ingo Muschenetz 2014-03-03

    Putting a SplitWindow as a child of a Tab is not supported.
  2. Lee Morris 2017-03-23

    Closing ticket as Won't Fix with reference to the above comments.

JSON Source