Status Update
Comments
al...@gmail.com <al...@gmail.com>
al...@gmail.com <al...@gmail.com> #2
Hey, thanks for the report. I looked into this, and what's actually happening is that the text field is larger than it should be in the unfocused state, and when it gets focused, it is shrinking to the correct size. This will be fixed soon.
However, for your specific example, you may want to change the text field padding in addition to the overall height. Otherwise, small text field sizes will be mostly padding and leave no space for the text itself. If you are using Material 2, this must be done manually using BasicTextField
+ TextFieldDefaults.OutlinedTextFieldDecorationBox
. If you are using Material 3, consider using the newest overload of OutlinedTextField
that uses TextFieldState
and has a contentPadding
parameter.
vi...@google.com <vi...@google.com>
vi...@google.com <vi...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
Author: Max Alfonso-Ying <
Link:
Clean up text field size calculations
Expand for full commit details
Clean up text field size calculations
Bug: b/356905963
Test: existing unit tests
Relnote: "Fix text field size modifiers sometimes not being followed."
Change-Id: I98895ce82f45ba7c9df67cfa787c08f0460426db
Files:
- M
compose/material/material/src/commonMain/kotlin/androidx/compose/material/OutlinedTextField.kt
- M
compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextField.kt
- M
compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextFieldImpl.kt
- M
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/OutlinedTextField.kt
- M
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TextField.kt
Hash: 93f37ea8ad82aa7e65743b36f08d6f4b404c6465
Date: Mon Dec 02 20:09:00 2024
vv...@google.com <vv...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
Author: Max Alfonso-Ying <
Link:
Clean up text field size calculations
Expand for full commit details
Clean up text field size calculations
Bug: b/356905963
Test: existing unit tests
Relnote: "Fix text field size modifiers sometimes not being followed."
Change-Id: I90d4c690aabd1b4e35cb3934998a8c379671163f
Files:
- M
compose/material/material/src/commonMain/kotlin/androidx/compose/material/OutlinedTextField.kt
- M
compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextField.kt
- M
compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextFieldImpl.kt
- M
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/OutlinedTextField.kt
- M
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TextField.kt
Hash: 3dfabb8562bd2ad420bc20b8a2dabf316dc6c562
Date: Wed Dec 04 20:44:55 2024
Description
What
User experience
What type of issue is this?
Application not responding (ANR)
What steps would let us observe this issue?
What was the effect of this issue on your device usage, such as lost time or work?
High
When
Time and frequency
Time when bug report was triggered: Dec 31, 2024 11:50 AM GMT-03:00
How often has this happened?
Every time
Where
Component
Originating component: <not visible> (1630575)
Build and device data
- Build Number: google/panther_beta/panther:15/BP11.241121.010/12780007:user/release-keys
(Note: It is the build when sending this report. For exact build reference, please see the attached bugreport.)
Related apps
Gboard
com.google.android.inputmethod.latin
Version 157445346 (14.9.06.696880419-beta-arm64-v8a)
System App (Updated)
Debugging information
Google Play services
com.google.android.gms
Version 244961035 (24.49.61 (260400-705672791))
System App (Updated)
Android System WebView
com.google.android.webview
Version 683405642 (132.0.6834.56)
System App (Updated)
Network operator: Personal
SIM operator: Personal
Filed by Android Beta Feedback. Version (Updated): 2.46-betterbug.external_20241023_RC01 (DOGFOOD)https://developer.android.com/preview/feedback#feedback-app .
To learn more about our feedback process, please visit