Skip to content

Commit

Permalink
Fixed using width components for height measurement;
Browse files Browse the repository at this point in the history
  • Loading branch information
mkollmer committed Nov 6, 2019
1 parent 3583e34 commit 42c855e
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 42c855e

Please sign in to comment.