Details

    • Story Points:
      1
    • Sprint:
      2014 Sprint 11 Docs

      Description

      The Tab.setWindow() method claims to set the root level tab window. However, using it on either Android or iOS seems to have no effect. If window.open() is called after setWindow() then the window obscures the tab group, and if window.open() is not called then the new window is not displayed. In other words, it seems impossible to change the root level tab window after tab group creation.
      example:
      index.xml

      <Alloy>
      	<TabGroup>
      		<Tab title="Tab 1" icon="KS_nav_ui.png" id="tab1">
      			<Window title="Tab 1">
      				<Label onClick="openChild">I am Window 1</Label>
      			</Window>
      		</Tab>
      		<Tab title="Tab 2" icon="KS_nav_views.png">
      			<Window title="Tab 2">
      				<Label>I am Window 2</Label>
      			</Window>
      		</Tab>
      	</TabGroup>
      </Alloy>
      

      childWin.xml:

      <Alloy>
      	<Window id="childWin" backgroundColor="red"/>
      </Alloy>
      

      index.js:

      function openChild() {
      	var childWin = Alloy.createController('childWin').getView();
      	$.tab1.setWindow(childWin);
      	childWin.open();
      }
       
      $.index.open(); // if you comment out this line then no visible effect
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhatfield Benjamin Hatfield (Inactive)
                Reporter:
                mokesmokes Mark Mokryn
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration