Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9801] iOS: Window - Black area appears after modal window closes along with change in orientation

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-11T11:52:58.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 3.0.2
ComponentsiOS
Labelsapi, qe-ios060112
ReporterNeha Chhabra
AssigneeShameer Jan
Created2012-06-26T03:59:05.000+0000
Updated2014-07-17T10:11:07.000+0000

Description

Black area appears after modal window closes along with change in orientation This is not a Regression.It even occurs on 2.0.2 Steps to Reproduce: 1. Install the app on device and launch it. 2. Press the "Press Me" button. 3. Rotate the device as top is pointing right. 4. Keep pressing the Close button and rotate the device to portrait mode and then release the button. Expected Result: The modal window should be closed Actual result: Black area appears on the first window. And, the first window continues to appear in the landscape mode. app.js
var _window = Titanium.UI.createWindow();
	_window.backgroundColor='white';
			
			var button = Ti.UI.createButton({
			title : 'Press me'
		});
		button.addEventListener('click', function() {
			var button2 = Ti.UI.createButton({
				title : 'close'
			});
			var win = Ti.UI.createWindow({
				modal : true,
				backgroundColor : '#c96'
			});
			button2.addEventListener('click', function() {
				win.close();
			});
			win.add(button2);
			win.open();

			win.open();

		});
		_window.add(button);

		
		 _window.open();

Attachments

FileDateSize
Screenshot.png2012-06-26T03:59:05.000+00009583

Comments

  1. Shameer Jan 2013-04-11

    Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 5.1

JSON Source