Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11194] iOS: Views: View on window with vertical layout first drawn on centre of screen and then is re-drawn on top.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-06T02:45:43.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sRelease 2.1.3, Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20
ComponentsiOS
Labelsapi, ios6, module_views, qe-ios090112, qe-testadded, regression
ReporterNeha Chhabra
AssigneeVishal Duggal
Created2012-09-27T12:23:02.000+0000
Updated2013-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();

Comments

  1. Vishal Duggal 2012-09-27

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/3062 for master https://github.com/appcelerator/titanium_mobile/pull/3063 for 2_1_X
  2. Lokesh Choudhary 2012-09-27

    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
  3. Lokesh Choudhary 2012-09-28

    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
  4. Ingo Muschenetz 2012-10-06

    Reopened to adjust remaining estimate.

JSON Source