Skip to content

Commit

Permalink
Merge pull request #5483 from salachi/TIMOB-16552
Browse files Browse the repository at this point in the history
TIMOB-16552-Reset Content width,height so that it is calculated again
  • Loading branch information
vishalduggal committed Mar 17, 2014
2 parents 03e8db2 + 700cae1 commit ce0dbde
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ protected void createControls()
applyChildProperties(newProxy, view);
}
}

//Reset the content height and width so that it is calculated based on the children
LayoutParams p = content.getLayoutParams();
p.height = -1;
p.width = -1;
content.setLayoutParams(p);
}
}

Expand Down

0 comments on commit ce0dbde

Please sign in to comment.