[AC-4810] Android: view.center not working
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2017-02-23T21:32:21.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Zakhar Zhuravlev |
| Assignee | Shak Hossain |
| Created | 2017-02-21T13:02:15.000+0000 |
| Updated | 2017-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
- Sharif AbuDarda 2017-02-23