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

Windows: 2DMatrix should scale from center

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.1.1
    • Fix Version/s: Release 7.3.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2018 Sprint 13 SDK

      Description

      View scale with 2DMatrix should scale the view from center position of the view.

      var win = Ti.UI.createWindow({
          backgroundColor: 'green'
      });
       
      var view = Ti.UI.createView({
          backgroundColor: 'red',
          width: 100,
          height: 200,
          id: 'view'
      }), matrix = Ti.UI.create2DMatrix({
          scale: 0.5
      }),
          view2 = Ti.UI.createWindow({
              width: 50, height: 50, backgroundColor: 'blue', id: 'view2'
          });
       
      view.add(view2);
       
      var animation = Ti.UI.createAnimation({
          transform: matrix,
          duration: 3000
      });
       
      win.addEventListener('open', function () {
          view.animate(animation);
      });
       
      win.add(view);
      win.open();
      

      Expected: View should scale from center of the view.

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              kiguchi Kota Iguchi
              Reviewer:
              Gary Mathews
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code