Skip to content

Commit ffaff43

Browse files
committed
fix(textfield,textview): android fix with components not sizing correctly
1 parent b57df2f commit ffaff43

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

packages/textfield/platforms/android/res/layout/material_text_field.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
android:layout_height="match_parent">
2222
<com.nativescript.material.textfield.TextInputEditText
2323
android:layout_width="match_parent"
24-
android:layout_height="wrap_content"/>
24+
android:layout_height="match_parent"/>
2525
</com.google.android.material.textfield.TextInputLayout>

packages/textfield/platforms/android/res/layout/material_text_field_filled.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
android:layout_height="match_parent">
2222
<com.nativescript.material.textfield.TextInputEditText
2323
android:layout_width="match_parent"
24-
android:layout_height="wrap_content"/>
24+
android:layout_height="match_parent"/>
2525
</com.google.android.material.textfield.TextInputLayout>

packages/textfield/platforms/android/res/layout/material_text_field_outline.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
android:layout_height="match_parent">
2222
<com.nativescript.material.textfield.TextInputEditText
2323
android:layout_width="match_parent"
24-
android:layout_height="wrap_content"/>
24+
android:layout_height="match_parent"/>
2525
</com.google.android.material.textfield.TextInputLayout>

packages/textview/platforms/android/res/layout/material_text_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
android:layout_height="match_parent">
2222
<com.nativescript.material.textview.TextViewInputEditText
2323
android:layout_width="match_parent"
24-
android:layout_height="wrap_content"/>
24+
android:layout_height="match_parent"/>
2525
</com.google.android.material.textfield.TextInputLayout>

packages/textview/platforms/android/res/layout/material_text_view_filled.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
android:layout_height="match_parent">
2222
<com.nativescript.material.textview.TextViewInputEditText
2323
android:layout_width="match_parent"
24-
android:layout_height="wrap_content"/>
24+
android:layout_height="match_parent"/>
2525
</com.google.android.material.textfield.TextInputLayout>

packages/textview/platforms/android/res/layout/material_text_view_outline.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
android:layout_height="match_parent">
2222
<com.nativescript.material.textview.TextViewInputEditText
2323
android:layout_width="match_parent"
24-
android:layout_height="wrap_content"/>
24+
android:layout_height="match_parent"/>
2525
</com.google.android.material.textfield.TextInputLayout>

src/textfield/textfield.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class TextField extends TextFieldBase {
106106
if (!FrameLayoutLayoutParams) {
107107
FrameLayoutLayoutParams = android.widget.FrameLayout.LayoutParams;
108108
}
109-
editText.setLayoutParams(new android.widget.LinearLayout.LayoutParams(FrameLayoutLayoutParams.MATCH_PARENT, FrameLayoutLayoutParams.WRAP_CONTENT));
109+
editText.setLayoutParams(new android.widget.LinearLayout.LayoutParams(FrameLayoutLayoutParams.MATCH_PARENT, FrameLayoutLayoutParams.MATCH_PARENT));
110110
layoutView.addView(editText);
111111
}
112112
if (needsTransparent) {

src/textview/textview.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class TextView extends TextViewBase {
9393
if (!FrameLayoutLayoutParams) {
9494
FrameLayoutLayoutParams = android.widget.FrameLayout.LayoutParams;
9595
}
96-
editText.setLayoutParams(new android.widget.LinearLayout.LayoutParams(FrameLayoutLayoutParams.MATCH_PARENT, FrameLayoutLayoutParams.WRAP_CONTENT));
96+
editText.setLayoutParams(new android.widget.LinearLayout.LayoutParams(FrameLayoutLayoutParams.MATCH_PARENT, FrameLayoutLayoutParams.MATCH_PARENT));
9797
layoutView.addView(editText);
9898
}
9999
if (needsTransparent) {

0 commit comments

Comments
 (0)