Skip to content

Commit

Permalink
[TIMOB-10238] Android: Wrong row index when using TableView with Ti.U…
Browse files Browse the repository at this point in the history
…I.SIZE and specifying row className
  • Loading branch information
krowley committed Sep 18, 2012
1 parent 578fea7 commit e0ae292
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -77,7 +77,6 @@ protected TableViewRowProxy getRowProxy() {
public void setRowData(Item item) {
this.item = item;
TableViewRowProxy rp = getRowProxy();
rp.setTableViewItem(this);
setRowData(rp);
}

Expand Down Expand Up @@ -356,6 +355,10 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom)
{
// Make this association here to avoid doing it on measurement passes
TableViewRowProxy rp = getRowProxy();
rp.setTableViewItem(this);

int contentLeft = left;
int contentRight = right;
bottom = bottom - top;
Expand Down

0 comments on commit e0ae292

Please sign in to comment.