Skip to content

Commit

Permalink
Merge pull request #2467 from mstepanov/timob-9640
Browse files Browse the repository at this point in the history
[TIMOB-9640] Android: 'postlayout' event is not triggered
  • Loading branch information
ayeung committed Jun 26, 2012
2 parents 87d1b76 + c0378e8 commit f5c8514
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,11 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto

super.onLayout(changed, left, top, right, bottom);

TiViewProxy viewProxy = proxy;
if (viewProxy != null && viewProxy.hasListeners(TiC.EVENT_POST_LAYOUT)) {
viewProxy.fireEvent(TiC.EVENT_POST_LAYOUT, null);
}

// Layout is finished, re-enable focus events.
if (focusListener != null) {
focusedView.setOnFocusChangeListener(focusListener);
Expand Down

0 comments on commit f5c8514

Please sign in to comment.