Skip to content

Commit

Permalink
Merge pull request #116 from koma999/issue111-HeightMeasurement
Browse files Browse the repository at this point in the history
Height measurement fixes
  • Loading branch information
QuadFlask committed Nov 7, 2019
2 parents 0963cb8 + 42c855e commit a5b4c7f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ else if (widthMode == MeasureSpec.EXACTLY)
int heightMode = MeasureSpec.getMode(heightMeasureSpec);
int height = 0;
if (heightMode == MeasureSpec.UNSPECIFIED)
height = widthMeasureSpec;
height = heightMeasureSpec;
else if (heightMode == MeasureSpec.AT_MOST)
height = MeasureSpec.getSize(heightMeasureSpec);
else if (widthMode == MeasureSpec.EXACTLY)
else if (heightMode == MeasureSpec.EXACTLY)
height = MeasureSpec.getSize(heightMeasureSpec);
int squareDimen = width;
if (height < width)
Expand Down

0 comments on commit a5b4c7f

Please sign in to comment.