[TIMOB-26085] Windows: 2DMatrix should scale from center
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-06-18T22:53:51.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-06-04T06:46:53.000+0000 |
Updated | 2018-06-20T15:46:44.000+0000 |
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.
https://github.com/appcelerator/titanium_mobile_windows/pull/1249
*FR* passed
*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}