Skip to content

Commit e9c4d2a

Browse files
committed
Fix BorderedTextField TextField Size To Fill Max Size Parent Size
1 parent 44adfac commit e9c4d2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/org/greenstand/android/TreeTracker/view/BorderedTextField.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import androidx.compose.foundation.BorderStroke
1919
import androidx.compose.foundation.border
2020
import androidx.compose.foundation.layout.Box
2121
import androidx.compose.foundation.layout.PaddingValues
22+
import androidx.compose.foundation.layout.fillMaxSize
2223
import androidx.compose.foundation.layout.padding
2324
import androidx.compose.foundation.shape.RoundedCornerShape
2425
import androidx.compose.foundation.text.KeyboardActions
@@ -62,6 +63,7 @@ fun BorderedTextField(
6263
TextField(
6364
modifier = Modifier
6465
.padding(8.dp)
66+
.fillMaxSize()
6567
.focusRequester(focusRequester)
6668
.onFocusChanged(onFocusChanged),
6769
value = value,

0 commit comments

Comments
 (0)