Skip to content

Commit cee29e9

Browse files
leticiarossiymarian
authored andcommitted
Automated g4 rollback of changelist 372177002
PiperOrigin-RevId: 372384266 (cherry picked from commit 73bf653)
1 parent 3ea60e6 commit cee29e9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -4077,9 +4077,9 @@ private void openCutout() {
40774077
final RectF cutoutBounds = tmpRectF;
40784078
collapsingTextHelper.getCollapsedTextActualBounds(
40794079
cutoutBounds, editText.getWidth(), editText.getGravity());
4080-
applyCutoutPadding(cutoutBounds);
40814080
boxLabelCutoutWidth = boxStrokeWidthPx;
4082-
cutoutBounds.bottom = boxLabelCutoutWidth;
4081+
cutoutBounds.bottom = cutoutBounds.top + boxLabelCutoutWidth;
4082+
applyCutoutPadding(cutoutBounds);
40834083
// Offset the cutout bounds by the TextInputLayout's left and top paddings to ensure that the
40844084
// cutout is inset relative to the TextInputLayout's bounds.
40854085
cutoutBounds.offset(-getPaddingLeft(), -getPaddingTop());
@@ -4102,7 +4102,6 @@ private void closeCutout() {
41024102

41034103
private void applyCutoutPadding(@NonNull RectF cutoutBounds) {
41044104
cutoutBounds.left -= boxLabelCutoutPaddingPx;
4105-
cutoutBounds.top -= boxLabelCutoutPaddingPx;
41064105
cutoutBounds.right += boxLabelCutoutPaddingPx;
41074106
}
41084107

0 commit comments

Comments
 (0)