[TIMOB-9118] iOS: Titanium.Window - The window with blue background does not fill all page, and red window is partially visible
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2013-04-01T11:32:29.000+0000 |
| Affected Version/s | Release 2.0.2 |
| Fix Version/s | Release 3.0.2 |
| Components | iOS |
| Labels | api, qe-ios050912 |
| Reporter | Tamila Smolich |
| Assignee | jithinpv |
| Created | 2012-05-11T16:12:10.000+0000 |
| Updated | 2017-03-17T18:42:17.000+0000 |
Description
Description:
While testing Window on iPad device, I noticed, that device rotation causes a situation when the normal window does not fill all page, and red window is partially visible.
This issue occurs on 2.0.1 as well.
Steps to reproduce:
1. Run the following code:
function modalWindow(){
var b = Ti.UI.createButton({title:'close'});
var a = Ti.UI.createButton({title:'open win'});
var w = Ti.UI.createWindow({
backgroundColor:'red',
rightNavButton:b,
leftNavButton:a
});
w.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));
b.addEventListener('click', function(){
w.close();
});
a.addEventListener('click', function(){
normalWindow().open();
});
return w;
}
function normalWindow(){
var b = Ti.UI.createButton({title:'close',width:200,height:40, top:100});
var w = Ti.UI.createWindow({
backgroundColor:'blue'
});
w.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));
w.add(b);
b.addEventListener('click', function(){
w.close();
});
return w;
}
(function(){
var win = Ti.UI.createWindow({
backgroundColor:'green'
});
var btn = Ti.UI.createButton({
width:100,
height:40,
title:'open modal'
});
win.add(btn);
btn.addEventListener('click', function(){
modalWindow().open({modal:true});
});
win.open();
})();
2. Press "Open modal" button
3. Press "Open win" button
3. Quickly rotate device several times
Expected result:
The normal window with blue background should fill all page
Actual result:
The normal window does not fill all page, and red window is partially visible
Attachments
| File | Date | Size |
|---|---|---|
| Screenshot 2012.05.11 15.13.58.png | 2012-05-11T16:12:10.000+0000 | 35685 |
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 iPad Simulator: iOS SDK version: 6.0
Closing ticket as the issue cannot be reproduced.