We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3583e34 commit 42c855eCopy full SHA for 42c855e
library/src/main/java/com/flask/colorpicker/ColorPickerView.java
@@ -210,10 +210,10 @@ else if (widthMode == MeasureSpec.EXACTLY)
210
int heightMode = MeasureSpec.getMode(heightMeasureSpec);
211
int height = 0;
212
if (heightMode == MeasureSpec.UNSPECIFIED)
213
- height = widthMeasureSpec;
+ height = heightMeasureSpec;
214
else if (heightMode == MeasureSpec.AT_MOST)
215
height = MeasureSpec.getSize(heightMeasureSpec);
216
- else if (widthMode == MeasureSpec.EXACTLY)
+ else if (heightMode == MeasureSpec.EXACTLY)
217
218
int squareDimen = width;
219
if (height < width)
0 commit comments