We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e28d9c commit a3d356fCopy full SHA for a3d356f
lib/java/com/google/android/material/textfield/TextInputLayout.java
@@ -2691,8 +2691,7 @@ private void updatePlaceholderMeasurementsBasedOnEditText() {
2691
if (placeholderTextView != null && editText != null) {
2692
// Use the EditText's positioning for the placeholder.
2693
final int editTextGravity = this.editText.getGravity();
2694
- placeholderTextView.setGravity(
2695
- Gravity.TOP | (editTextGravity & ~Gravity.VERTICAL_GRAVITY_MASK));
+ placeholderTextView.setGravity(editTextGravity);
2696
2697
placeholderTextView.setPadding(
2698
editText.getCompoundPaddingLeft(),
0 commit comments