Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2540] ListView - rect values not available within event handler of itemTemplate element

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-10-23T10:07:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsn/a
ReporterYoung
AssigneeMauro Parra-Miranda
Created2013-09-30T05:04:57.000+0000
Updated2016-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; }

Comments

  1. Mostafizur Rahman 2013-10-23

  2. Mauro Parra-Miranda 2013-11-24

    DUP issue.
  3. Young 2013-11-25

    Hi Mauro, I can't access TC-2956 for some reason.
  4. Mauro Parra-Miranda 2013-11-25

JSON Source