[TIMOB-11194] iOS: Views: View on window with vertical layout first drawn on centre of screen and then is re-drawn on top.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-06T02:45:43.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | Release 2.1.3, Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20 |
Components | iOS |
Labels | api, ios6, module_views, qe-ios090112, qe-testadded, regression |
Reporter | Neha Chhabra |
Assignee | Vishal Duggal |
Created | 2012-09-27T12:23:02.000+0000 |
Updated | 2013-09-24T10:17:29.000+0000 |
Description
View on window with vertical layout first drawn on centre of screen and then is re drawn on top.
This is regression.It does not occurs on 2.1.2.GA
Steps to Reproduce:
1. Install and launch the app on device.
2. Click on the button "click"
Actual Result:
After Step2: The red view initially appears in center of the screen for a moment and then moves to the top
Expected Result:
It should appear on top.
app.js
var win1 = Ti.UI.createWindow({
title :'Win 1',
layout :'vertical',
backgroundColor :'#fff'
});
var btn=Ti.UI.createButton({
title:'click'
})
win1.add(btn);
btn.addEventListener('click', function(e){
var win = Ti.UI.createWindow({
title :'Win 1',
layout :'vertical',
backgroundColor :'white'
});
var vw1 = Ti.UI.createView({
layout:'horizontal',
backgroundColor:'red',
width:'100%',
height:75,
});
win.add(vw1);
win.open();
});
win1.open();
Pull pending https://github.com/appcelerator/titanium_mobile/pull/3062 for master https://github.com/appcelerator/titanium_mobile/pull/3063 for 2_1_X
Verified the fix with: Tested on: Titanium studio : 2.1.2.201208301612 SDK version : 2.1.3.v20120927151612 Iphone 5 iOS 6 Iphone 4 (5.1.1) xcode 4.5 Mac OSX 10.8.2
forgot to add master branch version. Verified the fix with: Tested on: Titanium studio : 2.1.2.201208301612 SDK version : 2.1.3.v20120927151612 , 3.0.0.v20120927164913 Iphone 5 iOS 6 Iphone 4 (5.1.1) xcode 4.5 Mac OSX 10.8.2
Reopened to adjust remaining estimate.