Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15773] Android: Animation: Animation does not redraw on view

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-11-22T20:53:07.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 24, 2013 Sprint 24 API, Release 3.2.0
ComponentsAndroid
Labelsdev-investigate, module_animation, qe-3.2.0, qe-closed-3.2.0, qe-testadded, regression, triage
ReporterParas Mishra
AssigneeHieu Pham
Created2013-11-21T07:12:07.000+0000
Updated2014-02-11T10:19:02.000+0000

Description

Animation does not redraw on view It is regression, works fine on SDK: 3.1.3.GA Steps to reproduce: 1. Run the below app
		var win = Ti.UI.createWindow({
			backgroundColor:'white',
		});
		var view = Ti.UI.createView({
				    backgroundColor:'red',
				    height:100,
				    width:100,
				    top:0,
				    left:0
				});
		win.add(view);
		 
		var button = Titanium.UI.createButton({
		    title:'Animate',
		    width:200,
		    height:40,
		    bottom:20,
		    left: 10
		});
		 
		button.addEventListener('click', function()
		{
		    view.left = 0;
		    //view.updateLayout({left:0}); //tried that too, still doesnt work
		    view.animate({left:(win.rect.width - view.rect.width), duration:1000});
		    alert("!! clicked");
		});
		win.add(button);
		
		win.open();

2. Click Animate button second time. Expected: Red box should animate and move right. On the second click, Square should move to the left instantly and then should animate to the right. Actual: On second click animation does not occur.

Comments

  1. Hieu Pham 2013-11-21

    master PR: https://github.com/appcelerator/titanium_mobile/pull/5007
  2. Samuel Dowse 2013-11-23

    Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311211626 Titanium SDK, build: 3.2.0.v20131122125648 CLI: 3.2.0-alpha Alloy: 1.3.0-alpha Android Simulator: 4.2.2 Animation redraws on view on second click Closing.

JSON Source