Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-846

iPad: detailWindow inside TabGroup does not load after switching tabs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Alloy 1.3.0, 2013 Sprint 22
    • Component/s: XML
    • Labels:
    • Environment:

      iPad : iOS 7
      iPad : iOS 6

    • Sprint:
      2013 Sprint 22

      Description

      Description

      The project has as main element a TabGroup, one of the tabs of this TabGroup has a SplitWindow as the next list describes:

      • TabGroup
        • Tab1 (1)
          • SplitWindow
            • MasterWindow (a)
            • DetailWindow (b)
        • Tab2 (2)

      The MasterWindow is a menu that opens a new Window in the navigation of the DetailWindow. The first time this happens it works well, the UI loads as it is styled, actually if you go back in the Detailwindow and load another Detailwindow; but if you move to another tab, and then go back to the one with the Splitwindow, the new DetailWindow doesn't load correctly and it loads blank UI.

      Note : Issue is not reproducible with classic titanium.

      Test Case

      index.xml

      <Alloy>
      	<TabGroup>
      		<Tab title="Tab 1" icon="KS_nav_ui.png">
      			<Window>
      				<SplitWindow id="splitWin" platform="ios" formFactor="tablet">
       
      					<Window>
       
      						<NavigationGroup>
      							<Require src="testwindow"/>
      						</NavigationGroup>
       
      					</Window>
      					<Window>
      						<NavigationGroup id="detail_navGroup">
      							<Require src="detailWin" />
      						</NavigationGroup>
      					</Window>
       
      				</SplitWindow>
      			</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>
      

      index.js

      Alloy.Globals.detail_navGroup = $.detail_navGroup;
      $.index.open();
      

      detailWin.xml

      <Alloy>
      	<Window id="detailWin" title="test 2 title">
      		<Label>Detail Window</Label>
      	</Window>
      </Alloy>
      

      testwindow.xml

      <Alloy>
      	<Window id="testwin" class="container">
      		<Label>Label</Label>
      	</Window>
      </Alloy>
      

      testwindow.js

      $.testwin.addEventListener("click",function(){
      	Alloy.Globals.detail_navGroup.open(Alloy.createController('detailWin').getView(), {animated: true});
      });
      

        Attachments

          Activity

            People

            • Assignee:
              tlukasavage Tony Lukasavage
              Reporter:
              rsharma Rupesh Sharma
            • Watchers:
              9 Start watching this issue

              Dates

              • Due:
                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