[TIMOB-10571] MobileWeb: animation - is throwing Cannot read property '_layout' of undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-23T14:11:06.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Sprint 2012-17 Core, Release 3.0.0 |
Components | MobileWeb |
Labels | core, mobileweb, qe-port |
Reporter | Jon Alter |
Assignee | Jon Alter |
Created | 2012-08-23T09:45:05.000+0000 |
Updated | 2013-01-16T09:55:55.000+0000 |
Description
Animations are causing an error "Cannot read property '_layout' of undefined" when they are trying to run on an item that is not yet attached to a the window.
Steps to repro:
1. run the code below 2. click the window 3. notice the error "Cannot read property '_layout' of undefined"
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
win.open();
win.addEventListener('click', function(){
var view = Ti.UI.createView({
height: 50,
width: 50,
backgroundColor: 'blue'
});
view.animate({
top: 0,
duration: 300
});
});
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2815
Closing as fixed. Checked, tested and verified with: John Alter Titanium Studio, build: 3.0.1.201212181159 Titanium SDK, build: 3.0.0.GA Chrome 23.0