[AC-2540] ListView - rect values not available within event handler of itemTemplate element
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2013-10-23T10:07:42.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Alloy, Titanium SDK & CLI |
| Labels | n/a |
| Reporter | Young |
| Assignee | Mauro Parra-Miranda |
| Created | 2013-09-30T05:04:57.000+0000 |
| Updated | 2016-03-08T07:41:36.000+0000 |
Description
When running on Android devices (2.3.x thru 4.3), x & y values of 'rect' are both zero within event handlers of itemTemplate.
Right values returned on iOS devices.
itemTemplate.xml:
<ImageView id="img" bindId="image" onSingletap="doClick"/>
itemTemplate.js:
function doClick(e){ var x = e.source.rect.x; var y = e.source.rect.y; }
DUP issue.
Hi Mauro, I can't access TC-2956 for some reason.