Skip to content

Commit c0cc61d

Browse files
committed
fix left of clear button
1 parent c808311 commit c0cc61d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

textfieldboxes/src/main/java/studio/carbonylgroup/textfieldboxes/TextFieldBoxes.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
340340
}
341341

342342
if (this.hasClearButton)
343-
((RelativeLayout.LayoutParams) this.editText.getLayoutParams())
343+
((RelativeLayout.LayoutParams) this.inputLayout.getLayoutParams())
344344
.addRule(RelativeLayout.LEFT_OF, R.id.text_field_boxes_clear_button);
345345
else
346-
((RelativeLayout.LayoutParams) this.editText.getLayoutParams())
346+
((RelativeLayout.LayoutParams) this.inputLayout.getLayoutParams())
347347
.addRule(RelativeLayout.LEFT_OF, R.id.text_field_boxes_end_icon_button);
348348

349349
} else {

0 commit comments

Comments
 (0)