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

iOS: Navbar buttons are displaced above the statusbar when using a fullscreen window

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 4.1.1
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Description

      Problem description

      Opening a fullscreen window and switch to the landscape mode! Close this window and the underlying navigationwindow. The navbar button of the first navigationwindow is displaced above the statusbar.
      This behavior only appear when you switch from the portrait to the landscape mode in the fullscreen window

      Steps to reproduce

      1. Start app in portrait mode
      2. Tap the button "Open Win 2"
      3. Tap the button "Open FS Win"
      4. Rotate the device to the landscape mode
      5. Tap the button "close"
      6. Tap the button "Close Win 2"
      7. the Navbar button is displaces

      Test case

      app.js

      (function() {
      	var orientModes = [Titanium.UI.PORTRAIT,Titanium.UI.UPSIDE_PORTRAIT,Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT];
      	
      	var win1 = Ti.UI.createWindow({backgroundColor: '#FFF'});
      	var win2 = Ti.UI.createWindow({backgroundColor: '#FFF'});
      	
      	win1.orientationModes = orientModes;	
      	win2.orientationModes = orientModes;
      	
      	var closeWin1Btn = Ti.UI.createButton({title: 'Close Win 1'});	
      	var closeWin2Btn = Ti.UI.createButton({title: 'Close Win 2'});
      	
      	var navWin1 = Titanium.UI.iOS.createNavigationWindow({window: win1});
      	var navWin2 = Titanium.UI.iOS.createNavigationWindow({window: win2});
      	
      	var openWin2Btn = Ti.UI.createButton({title: 'Open Win 2'});
      	var openFullscreenWinBtn = Ti.UI.createButton({title: 'Open FS Win'});
      	
      	
      	openWin2Btn.addEventListener('click', function(){
      		navWin2.open();
      	});
      	
      	closeWin1Btn.addEventListener('click', function(){
      		navWin1.close();
      	});	
       
      	closeWin2Btn.addEventListener('click', function(){
      		navWin2.close();
      	});	
      	
      		
      	openFullscreenWinBtn.addEventListener('click', function(){
      		var fullscreenWin = Ti.UI.createWindow({backgroundColor: '#000', fullscreen: true});
      		var closeFSWinBtn = Ti.UI.createButton({title: 'close'});
      		var label = Ti.UI.createLabel({left:20,top:20,width:Titanium.UI.FILL,font:{fontSize:12},color: '#FFF', text:'Rotate to landscape mode'});
      		
      		fullscreenWin.orientationModes = orientModes;		
      		
      		closeFSWinBtn.addEventListener('click', function(){fullscreenWin.close();});
      		
      		fullscreenWin.add(label);
      		fullscreenWin.add(closeFSWinBtn);
      		
      		
      		fullscreenWin.open();
      	});
      	
      	win1.add(openWin2Btn);
      	
      	win2.add(openFullscreenWinBtn);
      	
      	
      	win1.leftNavButton = closeWin1Btn;
      	win2.leftNavButton = closeWin2Btn;
      	
      	navWin1.open();
      })();	
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Esche Markus Eschenbach
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code