[TIMOB-26045] Windows: 2DMatrix rotation scales view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-06-18T22:50:30.000+0000 |
Affected Version/s | Release 7.1.1 |
Fix Version/s | Release 7.3.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2018-05-16T02:08:59.000+0000 |
Updated | 2019-04-26T17:21:00.000+0000 |
Description
Animation transform using
2DMatrix
with rotate
property should just rotate the view but it actually scales view.
var win = Ti.UI.createWindow({
backgroundColor: 'green'
});
var view = Ti.UI.createView({
backgroundColor: 'red',
width: 100,
height: 100
}), matrix = Ti.UI.create2DMatrix({
rotate: 90
}), animation = Ti.UI.createAnimation({
transform: matrix,
duration: 3000
});
win.addEventListener('click', function () {
view.animate(animation);
});
win.add(view);
win.open();
Expexted: View should rotate at the center position of the view. This should not change view size.
https://github.com/appcelerator/titanium_mobile_windows/pull/1249
*Closing ticket.* More information on steps and env can be found on the FR The fix is present in SDK: {noformat} 7.3.0.v20180618182516 {noformat}