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

Noé Casas

12/08/2020, 11:37 PM
Is it possible to set a
TextField
’s text vertical alignment to “top”? How? By default the text is in the middle. Setting
Modifier.align(<http://Alignment.Top|Alignment.Top>)
does not help.
z

zsperske

12/09/2020, 4:14 AM
i think there's a baseline alignment for text fields
a

Anastasia [G]

12/10/2020, 10:57 AM
I’m afraid you can’t do this at the moment using TextField. There is a new spec being implemented where the text will be aligned to the top for multiline text field. At the moment you can only achieve this using BasicTextField
n

Noé Casas

12/10/2020, 11:16 AM
Thanks @Anastasia [G], I will use upgrade to the latest alpha to use
BasicTextField
.
4 Views