https://kotlinlang.org logo
#compose
Title
# compose
b

Brady Aiello

12/29/2020, 2:52 AM
Anyone ever have this issue with bouncing text in a
TextField
? I can resolve it with
singleLine = true
, but it still chops off the bottom of the sub-baseline letters. This is in a
TopAppBar
in a Scaffold. Thought this might be due to a size constraint on
TopAppBar
? Or maybe just the
topAppBar
content parameter in
Scaffold
? Not sure if there's any weird trickiness with
TextField
itself.
Fixed it with
Copy code
textStyle = TextStyle(color = MaterialTheme.colors.onSurface)
but it looks like it's only "fixed" because the text is small enough to fit now. Looks like `Scaffold`'s
topAppBar
doesn't let you exceed a certain size.
s

Siyamed

12/29/2020, 4:56 AM
The up down move at ever g/h looks very weird
b

Brady Aiello

12/29/2020, 5:45 AM
Yeah, it's a bummer. But making the text smaller, or if you can, making the TextField bigger, fixes it.