Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2748] [android] when setting transform, view should keep the transform

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-08-20T03:09:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelstransform, view
ReporterMartin Guillon
AssigneeShak Hossain
Created2012-07-21T02:40:15.000+0000
Updated2016-03-08T07:47:39.000+0000

Description

when doing
view.transform = transform;
the transformation is retained on osx but not on android. Which means you cant "read" it on android It can be very useful to know what s the current transform. For example you can do slidein/slideout on button click.

Comments

  1. Betty Tran 2012-08-09

    Hi Martin, I am unable to reproduce the issue. The matrix used for the transformation can be returned.
       var win = Ti.UI.createWindow({
       	backgroundColor: 'pink'
       })
       
       var view = Ti.UI.createView({
       	backgroundColor: 'orange',
       	height: 300,
       	width: 300
       });
       
       var matrix = Ti.UI.create2DMatrix({ rotate: 45 });
       view.transform = matrix;
       
       view.addEventListener('click', function(e){
       	alert(JSON.stringify(view.transform));
       });
       
       win.add(view);
       win.open();
       
       
       
  2. Martin Guillon 2012-08-20

    Hi, sorry forgot a little about this one. Will try with the latest trunk. Thanks for testing
  3. Shak Hossain 2014-01-15

    Closing since the issue is not reproducible with 3.2 TISDK.

JSON Source