Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13420] iOS: Window NavBar - the switch is moving up after device rotation

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-17T23:57:01.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 08 API, 2013 Sprint 08, Release 3.1.2, Release 3.2.0
ComponentsiOS
LabelsKitchenSink, navbar, qe-3.1.0, qe-closed-3.1.2, qe-testadded
ReporterOlga Romero
AssigneeVishal Duggal
Created2013-04-05T22:35:06.000+0000
Updated2014-06-19T12:43:05.000+0000

Description

Test steps: 1. Run KS> Base UI> Window NavBar 2. Press Title Prompt button 3. Press Title Control 4. Rotate device Actual result: The switch is moving up (see attachments) Expected result: The switch should not move

Attachments

FileDateSize
afterrotation.png2013-04-05T22:35:06.000+0000156417
beforerotation.png2013-04-05T22:35:06.000+0000157249

Comments

  1. Vishal Duggal 2013-04-07

    Not a regression. Occurs as far back as 2.1.4 GA. Moving out of 3.1.0
  2. Vishal Duggal 2013-04-11

    Test Case
       Titanium.UI.setBackgroundColor('#000');
       
       var label = Ti.UI.createLabel({
           text:'Title Control'
       })
        
       var win = Ti.UI.createWindow({
           title: 'NavItem Layout',
           modal: true,
           layout:'vertical',
       });
       
       var b1 = Ti.UI.createButton({
           title:'Toggle Prompt'
       })
        
       var b2 = Ti.UI.createButton({
           title:'Toggle Control'
       })
       
       win.add(b1);
       win.add(b2);
       
       showPrompt = true;
       b1.addEventListener('click',function(){
           win.titlePrompt = (showPrompt == true)?'Title Prompt':null;
           showPrompt = ! showPrompt;
       })
       showControl = true;
       b2.addEventListener('click',function(){
           win.titleControl = (showControl == true)?label:null;
           showControl = ! showControl;
       })
       
       
       win.open();    
       
  3. Vishal Duggal 2013-04-11

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/4149
  4. Olga Romero 2013-07-30

    Tested and verified fix with: Appcelerator Studio, build: 3.1.2.201307261628 Titanium SDK, build: 3.1.2.v20130730094858 iPhone5 iOS7 iPad4 iOS7 Kitchensink, version:3.1.1.GA If using the test case from comments above and iOS7, the background color should be changed.

JSON Source