Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26045] Windows: 2DMatrix rotation scales view

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-06-18T22:50:30.000+0000
Affected Version/sRelease 7.1.1
Fix Version/sRelease 7.3.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2018-05-16T02:08:59.000+0000
Updated2019-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.

Comments

  1. Kota Iguchi 2018-06-04

    https://github.com/appcelerator/titanium_mobile_windows/pull/1249
  2. Josh Longton 2018-06-20

    *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}

JSON Source