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

Windows: View gets snapped back to center when animating using the right property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: Release 6.0.0
    • Component/s: Windows
    • Labels:
    • Environment:

      Windows 10 Pro
      Ti SDK: 5.4.0.v20160630074247
      Appc NPM: 4.2.7-2
      Appc CLI: 5.4.0-23
      Appc Studio: 4.7.0.201606220541
      Lumia 930: 10.0

    • Story Points:
      5
    • Sprint:
      2016 Sprint 14 SDK

      Description

      Description

      When animating a view and using the right property the view gets snapped back to the centre when the animation has completed.

      This only happens for the right property, left, top and bottom work as expected.

      var win = Ti.UI.createWindow({ backgroundColor: 'green' });
      var box = Ti.UI.createView({
          backgroundColor: 'red',
          left: 100,
          height: '100',
          width: '100'
      });
      win.add(box);
       
      var pos = 150;
      box.addEventListener('click', function () {
          var a = Ti.UI.createAnimation({
              right: 200,
              bottom: 40,
              duration: 2000,
          });
          a.addEventListener('complete', function () {
             pos += 50;
          });
          box.animate(a);
      });
      win.open();
      

      Steps to reproduce
      1. Using the code above build to Windows Emulator or device
      2. Click the red box
      Actual result

      When the animation has finished the view will snap back to the centre of the screen

      Expected result

      When the animation has finished the view should not snap back to the centre of the screen

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              eharris Ewan Harris
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration