Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-17260-If there is layout pending, queue up new request to animate #5946

Merged
merged 1 commit into from Sep 4, 2014

Conversation

salachi
Copy link
Contributor

@salachi salachi commented Aug 3, 2014

Modified the animate code to queue up a new request if there is layout pending.

https://jira.appcelerator.org/browse/TIMOB-17260

final View v = getOuterView();
if (v != null) {
bLayoutPending.set(true);
OnGlobalLayoutListener layoutListener = new OnGlobalLayoutListener()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you just do this directly the else clause of handleAnimate() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to set the flag to track pending layout. If layout is not pending we can execute the animation right away otherwise we need to queue it so that it will be done after layout completion

@hieupham007
Copy link
Contributor

Code reviewed. Please address comments

@hieupham007
Copy link
Contributor

Code reviewed and functionally tested. Request accepted

hieupham007 added a commit that referenced this pull request Sep 4, 2014
TIMOB-17260-If there is layout pending, queue up new request to animate
@hieupham007 hieupham007 merged commit 76d2ff3 into tidev:master Sep 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants