Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10571] MobileWeb: animation - is throwing Cannot read property '_layout' of undefined

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-08-23T14:11:06.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sSprint 2012-17 Core, Release 3.0.0
ComponentsMobileWeb
Labelscore, mobileweb, qe-port
ReporterJon Alter
AssigneeJon Alter
Created2012-08-23T09:45:05.000+0000
Updated2013-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
	});
});

Comments

  1. Jon Alter 2012-08-23

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2815
  2. Olga Romero 2013-01-16

    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

JSON Source