Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4810] Android: view.center not working

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2017-02-23T21:32:21.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterZakhar Zhuravlev
AssigneeShak Hossain
Created2017-02-21T13:02:15.000+0000
Updated2017-02-23T21:32:21.000+0000

Description

Android: view.center not working. 6.0.1.GA is affected!!! *Steps to reproduce:* * Create an alloy project with the reporter's provided test case * Run the app * Change the value of the x and y axis of the center by tapping on red rect * Observe that no change takes effect *index.js:*
function onClick(e) {
    $.testView.center = {
    	x: '50dp',
    	y: '50dp'
    };
}
$.win.open();
*index.xml:*
<Alloy>
    <Window id='win' backgroundColor="green">
		 <View id='testView' backgroundColor="red" width='100dp' height='50dp' onClick="onClick" />
    </Window>
</Alloy>
P.S. iOS works fine.

Comments

  1. Sharif AbuDarda 2017-02-23

JSON Source