Project: titanium
Issue TIMOB-19426: Windows: animate doesn't work when duration is short
View.animate doesn't work when duration is short, such as 250. Following example works when duration is 1000 (1 sec). {code:javascript} var win = Ti.UI.createWindow({ backgroundColor: 'blue' }); var container = Ti.UI.createView({ top: -70, left: 0, width: Ti.UI.FILL, height: Ti.UI.FILL }); win.add(container); var search_textfield = Ti.UI.createTextField({ top: 10, left: 10, right: 10, height: 40 }); container.add(search_textfield); win.addEventListener('open', function () { setTimeout(function () { container.animate({ top: 0, duration: 250 /* works when duration: 1000 */ }); }, 3000); }); win.open(); {code}
Story points: 5