Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11715] iOS: Animation - Animations are missing while adding and removing view.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-11-20T23:08:31.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 API
ComponentsiOS
Labelscore, module_animation, qe-ios100112, qe-testadded, regression, tableview
ReporterAnshu Mittal
AssigneeIngo Muschenetz
Created2012-11-09T12:29:51.000+0000
Updated2013-07-24T08:52:10.000+0000

Description

Animations are missing while adding and removing view. This is regression since the issue does not occur in 2.1.4 and 2.1.3 GA. Steps to reproduce: 1. Create an app using the code below. 2. Launch the app and Click on yellow button. 3. Click on green button. Expected result 2. A blue view should appear with drop down animation with no delay. 3. Blue view should disappear with bottom up animation. Actual: There is no drop down or bottom up animation while appearing and disappearing the view.
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#FFFFFF'
});
		 
		var ds =[];
		expandableView = Ti.UI.createView({top:0,height:60,backgroundColor:'red'});
		nextview = Ti.UI.createView({layout:'vertical',top:-60,height:60,backgroundColor:'blue'});
		var row1 = Titanium.UI.createTableViewRow({height:100});
		row1.add(expandableView);
		 
		ds.push(row1);
		 
		var row2 = Titanium.UI.createTableViewRow({height:100});
		row2.add(nextview);
		 
		ds.push(row2);
		 
		 
		var btn1 = Ti.UI.createButton({
		                    title : 'Yes',
		                    width : '50%',
		                    height : 30,
		                    bottom : 0,
		                    left : 0,
		                    font : {
		                        fontSize : 13,
		                        fontWeight : 'bold',
		                        fontFamily : 'Helvetica Neue'
		                    },
		                    color : '#FFFFFF',
		                    backgroundImage:'none',
		                    backgroundColor:'yellow'
		                });
		         
		            var btn2 = Ti.UI.createButton({
		                    title : 'No',
		                    width : '50%',
		                    height : 30,
		                    bottom : 2,
		                    right : 0,
		                    font : {
		                        fontSize : 13,
		                        fontWeight : 'bold',
		                        fontFamily : 'Helvetica Neue'
		                    },
		                    color : '#858686',
		                    backgroundImage:'none',
		                    backgroundColor:'green'
		                });
		btn1.addEventListener('click',function(){
		    nextview.animate({top:0,duration:500})
		});
		btn2.addEventListener('click',function(){
		    nextview.animate({top:-60,duration:500})
		});
		var tableView = Titanium.UI.createTableView({
		            data : ds,
		            scrollable : true,
		            separatorColor : 'transparent',
		            separatorStyle: 'none',
		            top:0
		    });
		 
		 
		win1.add(tableView);
		win1.add(btn1);
		win1.add(btn2);
		win1.open()
	

Comments

  1. Vishal Duggal 2012-11-20

    Caused due to fix for TIMOB-11510. Will be fixed with fix for TIMOB-11760
  2. Vishal Duggal 2012-11-20

    Fixed by PR https://github.com/appcelerator/titanium_mobile/pull/3424 against TIMOB-11760
  3. Natalie Huynh 2012-12-04

    Tested with 3.0.0.v20121130200208 with iPhone 4 5.1.1
  4. Pragya Rastogi 2013-07-24

    Already covered in TIMOB-9827 test steps.

JSON Source