Skip to content

Commit

Permalink
Merge pull request #5151 from ayeung/timob-16048
Browse files Browse the repository at this point in the history
TIMOB-16048: Only use measured height from content view if it's greater than 1
  • Loading branch information
pingwang2011 committed Dec 23, 2013
2 parents 95b274b + 22723fd commit b988155
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
} else {
h = Math.max(minRowHeight, height.getAsPixels(this));
}
if (hasChildView) {
// Make sure the height is greater than 1 (not 0 since image views default to 1)
if (hasChildView && h > 1) {
content.getLayoutParams().height = h;
}

Expand Down

0 comments on commit b988155

Please sign in to comment.