Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14570] MobileWeb: Ti.UI.create2DMatrix() does not support properties in its constructor object

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T22:21:24.000+0000
Affected Version/sRelease 3.1.1
Fix Version/sn/a
ComponentsMobileWeb
Labelsparity
ReporterTony Lukasavage
AssigneeChris Barber
Created2013-07-16T20:54:59.000+0000
Updated2018-04-04T23:20:41.000+0000

Description

problem

Mobileweb does not respect matrix properties ([MatrixCreationDict](http://docs.appcelerator.com/titanium/latest/#!/api/MatrixCreationDict)) set in the constructor of [Ti.UI.create2DMatrix()](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.2DMatrix), despite the documentation at docs.appcelerator.com indicating that it should. It works on Android and iOS.

expected

Mobileweb, like Android and iOS, should appropriately apply a [MatrixCreationDict](http://docs.appcelerator.com/titanium/latest/#!/api/MatrixCreationDict) passed into the Ti.UI.create2DMatrix() function.

test case

The label will be tilted 45 degrees on Android and iOS. It will not be on Mobileweb.
var win = Ti.UI.createWindow({
	backgroundColor: '#fff',
	modal: false,
	exitOnClose: true
});
var label = Ti.UI.createLabel({
	text: 'just a test label',

        // Ti.UI.create2DMatrix().rotate(45) would work on all platforms
	transform: Ti.UI.create2DMatrix({rotate:45})
});

win.add(label);
win.open();

Comments

  1. Lee Morris 2017-06-26

    Resolving as "Won't Fix" as MobileWeb has been deprecated.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source