Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19426] Windows: animate doesn't work when duration is short

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2015-08-31T23:00:18.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-08-28T12:36:28.000+0000
Updated2017-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();

Comments

  1. Kota Iguchi 2015-08-31

    https://github.com/appcelerator/titanium_mobile_windows/pull/422
  2. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source