Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6691] Android: 2DMatrix multiply method ignores passed in argument

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-01-09T12:24:45.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
Componentsn/a
Labelsmerge-1.8.1, qe-port
ReporterOpie Cyrus
AssigneeHieu Pham
Created2011-12-15T09:30:59.000+0000
Updated2012-08-15T14:06:38.000+0000

Description

The multiply method in 2DMatrix on Android does not do anything with the argument given to it. The operation should occur on the argument rather than the "this" object.

Comments

  1. Hieu Pham 2011-12-19

    Testing steps: Run this snippet in Android and it should work as expected. Can also test by comparing behavior in iOS simulator.
       var matrix1 = Ti.UI.create2DMatrix();
       var matrix2 = Ti.UI.create2DMatrix();
       matrix1 = matrix1.rotate(90);
       matrix2 = matrix2.scale(2,1);
       var matrix3 = matrix2.multiply(matrix1);
       
       var win1 = Ti.UI.createWindow({backgroundColor: "white"});
       var view = Ti.UI.createView({height: 100, width: 50, backgroundColor: "green"});
       win1.add(view);
       win1.open();
       view.animate({transform: matrix3, duration: 10000});
       
    Expected result: you should see a square if the multiplication is applied in the correct order.
  2. Rima Umbrasas 2012-08-15

    Verified fixed with : Mobile sdk-2.2.0.v20120810080115 Titanium Studio, build: 2.1.1.201207271312 Device: Galaxy S III Android version 4.0.4 3 iPhone emulator.

JSON Source