[TIMOB-15773] Android: Animation: Animation does not redraw on view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-11-22T20:53:07.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 24, 2013 Sprint 24 API, Release 3.2.0 |
Components | Android |
Labels | dev-investigate, module_animation, qe-3.2.0, qe-closed-3.2.0, qe-testadded, regression, triage |
Reporter | Paras Mishra |
Assignee | Hieu Pham |
Created | 2013-11-21T07:12:07.000+0000 |
Updated | 2014-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.
master PR: https://github.com/appcelerator/titanium_mobile/pull/5007
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.