[TIMOB-9801] iOS: Window - Black area appears after modal window closes along with change in orientation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-04-11T11:52:58.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 3.0.2 |
Components | iOS |
Labels | api, qe-ios060112 |
Reporter | Neha Chhabra |
Assignee | Shameer Jan |
Created | 2012-06-26T03:59:05.000+0000 |
Updated | 2014-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
File | Date | Size |
---|---|---|
Screenshot.png | 2012-06-26T03:59:05.000+0000 | 9583 |
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