[AC-2748] [android] when setting transform, view should keep the transform
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2012-08-20T03:09:28.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | transform, view |
| Reporter | Martin Guillon |
| Assignee | Shak Hossain |
| Created | 2012-07-21T02:40:15.000+0000 |
| Updated | 2016-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.
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();Hi, sorry forgot a little about this one. Will try with the latest trunk. Thanks for testing
Closing since the issue is not reproducible with 3.2 TISDK.