File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
lib/java/com/google/android/material/textfield Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments