[TIMOB-19426] Windows: animate doesn't work when duration is short
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-08-31T23:00:18.000+0000 |
Affected Version/s | Release 5.0.0 |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2015-08-28T12:36:28.000+0000 |
Updated | 2017-03-16T21:58:47.000+0000 |
Description
View.animate doesn't work when duration is short, such as 250. Following example works when duration is 1000 (1 sec).
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();
https://github.com/appcelerator/titanium_mobile_windows/pull/422
Closing ticket as fixed.