Skip to content

Commit

Permalink
[TextInputLayout] Start outline cutout bounds at a y location of 0 to…
Browse files Browse the repository at this point in the history
… encompass any possible vertical shifts due to a size difference between the placeholder text and the edit text

PiperOrigin-RevId: 679308079
  • Loading branch information
imhappi authored and dsn5ft committed Oct 1, 2024
1 parent ade1437 commit 246fa67
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4259,6 +4259,7 @@ private void openCutout() {
// drawing area.
cutoutBounds.offset(
-getPaddingLeft(), -getPaddingTop() - cutoutBounds.height() / 2 + boxStrokeWidthPx);
cutoutBounds.top = 0;
((CutoutDrawable) boxBackground).setCutout(cutoutBounds);
}

Expand Down

0 comments on commit 246fa67

Please sign in to comment.