Status Update
Comments
sk...@gmail.com <sk...@gmail.com> #2
Over to Ralston to take a look. I imagine with the new relocation logic it should be fixed?
gr...@google.com <gr...@google.com>
gr...@google.com <gr...@google.com> #3
What is happening here is that the TextField does not know that it is in a scrollable container, and since the keyboard is going to hide the currently focused text, the text field calls View.requestRectangleOnScreen which causes the entire app to pan up, and that clips the top bar.
The Relocation APIs are experimental right now. It is not used in TextField as we are past the alpha stage and can only use stable APIs in TextField. So this bug can only be fixed post 1.0
gr...@google.com <gr...@google.com> #4
This should be fixed by
I verified that this sample code now works when soft input mode is AdjustResize.
to...@ackee.cz <to...@ackee.cz> #5
It happens when lineHeight and fontWeight is set to these specific dimensions. There will be more combinations, which causes problem. This is just example.
This is result:
Column {
Text(
text = "Zavrieť",
style = TextStyle(
lineHeight = 24.sp,
fontWeight = FontWeight.Medium,
)
)
Text(
text = "Zavrieť",
style = TextStyle(
lineHeight = 24.sp,
fontWeight = FontWeight.Medium,
)
)
}
Bug occurs only on Android 15.
gr...@google.com <gr...@google.com> #6
I'm unable to reproduce with either of the repro samples, can you share your density settings, compose version, and android version/phone model?
gr...@google.com <gr...@google.com> #7
This may be fixed by
Description
Jetpack Compose component(s) used:
androidx.compose.material.Text
Android Studio Build:
Android Studio Ladybug | 2024.2.1
Kotlin version:
2.0.21
Steps to Reproduce or Code Sample to Reproduce:
Column {
Text(
text = "Zavrieť",
style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
color = colorResource(R.color.content),
fontWeight = FontWeight.Medium,
textDecoration = TextDecoration.None,
fontFamily = FontFamily.SansSerif,
)
)
Text(
text = "Zavrieť",
style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
color = colorResource(R.color.content),
fontWeight = FontWeight.Medium,
textDecoration = TextDecoration.None,
fontFamily = FontFamily.SansSerif,
)
)
}
You can see result on screenShot. There are two same Text functions which generates different output. It looks like width of Text element is calculated badly and then "text" is splitted into two lines.
It works correctly when I use FontWeight.Normal.
It is not working for the word "Zavrieť". When I use English "close", then it works.