Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24442

Android: Ti.UI.View.rect is not updated after animation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.2
    • Fix Version/s: Release 6.0.3
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2017 Sprint 05 SDK

      Description

      • Titanium.UI.View.rect x and y properties are not updated after a transform animation has taken place.

      TEST CASE

      var win = Ti.UI.createWindow({backgroundColor: 'gray'}),
          view = Ti.UI.createView({
              left: 0,
              top: 0,
              width: 100,
              height: 100,
              backgroundColor: 'red'
          });
       
      win.addEventListener('open', function() {
          Ti.API.info('Initial');
          Ti.API.info('  rect.x: ' + view.rect.x);
          Ti.API.info('  rect.y: ' + view.rect.y);
       
          view.animate({
              top: 200,
              left: 200,
              duration: 1000
          }, function() {
              Ti.API.info('After Animation');
              Ti.API.info('  rect.x: ' + view.rect.x);
              Ti.API.info('  rect.y: ' + view.rect.y);
          });
      })
      win.add(view);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                gmathews Gary Mathews
                Reviewer:
                Andy Waldman
                Tester:
                Samir Mohammed
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10515
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code