Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15159

iOS: Adding child window to parent window does not display

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Invalid
    • Affects Version/s: Release 3.1.3, Release 3.2.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Titanium Mobile SDK, iOS.

      Description

      When we add one window object to another parent window object, then child window object is not visible.

      Steps to reproduce
      1: Use the below sample code and copy paste it in app.js
      2: Run the project.
      3: click on open added window button.
      4: using 3.1.3 SDK, only parent window i.e. yellow colored window will be displayed.

      Note: Using 3.1.2.GA SDK both parent and child windows are displayed. i.e. yellow and red colored windows are displayed.

      Sample code

      var win1 = Ti.UI.createWindow({
      	backgroundColor : "gray"
      });
       
      var btn = Ti.UI.createButton({
      	top:20,
      	left:20,
      	height:100,
      	width:200,
      	title : "open added window"
      });
       
      btn.addEventListener("click", function() {
      	var win2 = Ti.UI.createWindow({
      		backgroundColor : "yellow"
      	});
       
      	var win3 = Ti.UI.createWindow({
      		top:100,
      		left:100,
      		height:180,
      		width:200,
      		backgroundColor : "red"
      	});
      	
      	win2.add(win3);
      	
      	win2.open();
      });
       
      var btn1 = Ti.UI.createButton({
      	top:220,
      	left:20,
      	height:100,
      	width:200,
      	title : "open new single window"
      });
       
      btn1.addEventListener("click", function() {
      	var win2 = Ti.UI.createWindow({
      		backgroundColor : "pink"
      	});
      	
      	win2.open();
      });
       
       
      win1.add(btn);
      win1.add(btn1);
       
      win1.open();
      
      

        Attachments

          Activity

            People

            • Assignee:
              srahim Sabil Rahim
              Reporter:
              anigam Ashish Nigam
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17434
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code