Skip to content

Commit 246fa67

Browse files
imhappidsn5ft
authored andcommitted
[TextInputLayout] Start outline cutout bounds at a y location of 0 to encompass any possible vertical shifts due to a size difference between the placeholder text and the edit text
PiperOrigin-RevId: 679308079
1 parent ade1437 commit 246fa67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/java/com/google/android/material/textfield/TextInputLayout.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4259,6 +4259,7 @@ private void openCutout() {
42594259
// drawing area.
42604260
cutoutBounds.offset(
42614261
-getPaddingLeft(), -getPaddingTop() - cutoutBounds.height() / 2 + boxStrokeWidthPx);
4262+
cutoutBounds.top = 0;
42624263
((CutoutDrawable) boxBackground).setCutout(cutoutBounds);
42634264
}
42644265

0 commit comments

Comments
 (0)