File tree 1 file changed +2
-3
lines changed
lib/java/com/google/android/material/textfield
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4077,9 +4077,9 @@ private void openCutout() {
4077
4077
final RectF cutoutBounds = tmpRectF ;
4078
4078
collapsingTextHelper .getCollapsedTextActualBounds (
4079
4079
cutoutBounds , editText .getWidth (), editText .getGravity ());
4080
- applyCutoutPadding (cutoutBounds );
4081
4080
boxLabelCutoutWidth = boxStrokeWidthPx ;
4082
- cutoutBounds .bottom = boxLabelCutoutWidth ;
4081
+ cutoutBounds .bottom = cutoutBounds .top + boxLabelCutoutWidth ;
4082
+ applyCutoutPadding (cutoutBounds );
4083
4083
// Offset the cutout bounds by the TextInputLayout's left and top paddings to ensure that the
4084
4084
// cutout is inset relative to the TextInputLayout's bounds.
4085
4085
cutoutBounds .offset (-getPaddingLeft (), -getPaddingTop ());
@@ -4102,7 +4102,6 @@ private void closeCutout() {
4102
4102
4103
4103
private void applyCutoutPadding (@ NonNull RectF cutoutBounds ) {
4104
4104
cutoutBounds .left -= boxLabelCutoutPaddingPx ;
4105
- cutoutBounds .top -= boxLabelCutoutPaddingPx ;
4106
4105
cutoutBounds .right += boxLabelCutoutPaddingPx ;
4107
4106
}
4108
4107
You can’t perform that action at this time.
0 commit comments