Project: titanium
Issue TIMOB-23607: Windows: View gets snapped back to center when animating using the right property
h5.Description When animating a view and using the {{right}} property the view gets snapped back to the centre when the animation has completed. This only happens for the right property, left, top and bottom work as expected. {code} var win = Ti.UI.createWindow({ backgroundColor: 'green' }); var box = Ti.UI.createView({ backgroundColor: 'red', left: 100, height: '100', width: '100' }); win.add(box); var pos = 150; box.addEventListener('click', function () { var a = Ti.UI.createAnimation({ right: 200, bottom: 40, duration: 2000, }); a.addEventListener('complete', function () { pos += 50; }); box.animate(a); }); win.open(); {code} h5.Steps to reproduce # Using the code above build to Windows Emulator or device # Click the red box h5.Actual result When the animation has finished the view will snap back to the centre of the screen h5.Expected result When the animation has finished the view should not snap back to the centre of the screen
Story points: 5