Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26085] Windows: 2DMatrix should scale from center

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-06-18T22:53:51.000+0000
Affected Version/sRelease 7.1.1
Fix Version/sRelease 7.3.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2018-06-04T06:46:53.000+0000
Updated2018-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.

Comments

  1. Kota Iguchi 2018-06-04

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

    *FR* passed
  3. 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