Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-11715

iOS: Animation - Animations are missing while adding and removing view.

    Details

      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()
      	
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                amittal Anshu Mittal
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14909
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code