Skip to content

Commit

Permalink
Merge pull request tidev#4382 from bijupmb/TIMOB-13671-AnimateCrashes…
Browse files Browse the repository at this point in the history
…AppIfIthasBorder

TIMOB-13671- add checking only for TicompositLayout.LayoutParam
  • Loading branch information
GroupeConitech committed Aug 29, 2013
2 parents 211af30 + b787e94 commit 788cfa1
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,14 @@ protected class AnimationListener implements Animation.AnimationListener
public void onAnimationEnd(Animation a)
{
if (relayoutChild) {
LayoutParams params = (LayoutParams) view.getLayoutParams();
TiConvert.fillLayout(options, params);
view.setLayoutParams(params);
// Do it only for TiCompositeLayout.LayoutParams, for border views
// height and width are defined as 'MATCH_PARENT' and no change is
// needed
if (view.getLayoutParams() instanceof TiCompositeLayout.LayoutParams) {
LayoutParams params = (LayoutParams) view.getLayoutParams();
TiConvert.fillLayout(options, params);
view.setLayoutParams(params);
}
view.clearAnimation();
relayoutChild = false;
// TIMOB-11298 Propagate layout property changes to proxy
Expand Down

0 comments on commit 788cfa1

Please sign in to comment.