Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11219] iOS: Black bar starts appearing below navBar when orientation changed between opening and closing of a window.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-10-17T20:46:51.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 21 API, 2012 Sprint 21
ComponentsiOS
Labelsapi, orientation, qe-ios090112, qe-testadded, release-note
ReporterShyam Bhadauria
AssigneeVishal Duggal
Created2012-10-01T07:20:50.000+0000
Updated2012-12-04T20:03:11.000+0000

Description

This is a regression. It is working fine with 2.1.2GA on iOS 6. This is only occurring on iOS 6 ipad. Working fine on iOS 5.1 ipad with 2.1.3.v20120928203111. Steps to reproduce: 1. Use the code below -
Titanium.UI.setBackgroundColor('#000');

var tabGroup = Titanium.UI.createTabGroup();

var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff',
    navBarHidden: false,
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});

var b1 = Titanium.UI.createButton({
	title:'Win 2',
});

win1.add(b1);

b1.addEventListener('click', function(e)
{
    var w = Titanium.UI.createWindow({
	fullscreen:true,
	barColor:'#111',
	orientationModes:[Titanium.UI.LANDSCAPE_LEFT]
    });
    tab1.open(w);
});

tabGroup.addTab(tab1);  
tabGroup.open();
2. Run the app and rotate device to landscape mode. 3. Click the button 'Win 2' 4. Rotate the device to portrait mode. 5. Click the nav button 'Tab 1'. Expected result: 2. A tabgroup with a button 'win 2' should be displayed. Window should be rotated to landscape mode. 3. A new black window should get opened in the tab. 4. The black window should remain in landscape mode. 5. The black window should get closed and older white window should be displayed with no black bar below navbar. Actual result: 2. A tabgroup with a button 'win 2' gets displayed. Window gets rotated to landscape mode. 3. A new black window gets opened in the tab. 4. The black window remains in landscape mode. 5. The black window gets closed and older white window gets displayed with a black bar below navbar. This black bar below navbar should not get displayed. Snapshots attached.

Attachments

FileDateSize
iOS 5 - 2.1.3.v20120928203111.png2012-10-01T08:26:54.000+000024767
iOS 6 - 2.1.2GA.png2012-10-01T08:26:54.000+000073383
iOS 6 - 2.1.3.v20120928203111.png2012-10-01T08:26:54.000+000073671

Comments

  1. Natalie Huynh 2012-10-01

    Tested with iPad 3 6.0 with 2.1.3.v20120915120319 still see the issue.
  2. Ingo Muschenetz 2012-10-01

    Vishal, thoughts?
  3. Vishal Duggal 2012-10-01

    Not a regression. Occurs on 2.1.2 GA against 5.1 iPAD sim. Removing regression and qe-io6 labels
  4. Olga Romero 2012-10-02

    Tested with: Titanium Studio, build: 2.1.2.201208301612 Titanium Studio, SDK: 2.1.3.v20120928203111 iPad1 ios 5.1.1 The issue occurs after Win2 is open and then the device is rotated to any mode but left landscape, and Tab1 is pressed.
  5. Vishal Duggal 2012-10-13

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/3211
  6. Ingo Muschenetz 2012-10-14

    Assuming this should be merged to 3.0.0. Please remove the label if that isn't the case.
  7. Vishal Duggal 2012-10-17

    3_0_X PR https://github.com/appcelerator/titanium_mobile/pull/3270
  8. Olga Romero 2012-12-04

    Closing as fixed. Tested and verified with: Titanium Studio, build: 3.0.0.201211301903 Titanium SDK, build: 3.0.0.v20121130200208 Devices: iPad mini iOS 6.0.1 iPhone5 iOS 6.0

JSON Source