If my TextField is too small, the text in it won't...
# compose
j
If my TextField is too small, the text in it won't show up. How can I fix this?
z
How small is “too small”? If you have a 1x1px text field, there’s not much you can do.
j
I have tested it with 50dp * 30dp
75dp * 50dp works fine
z
Do you have screenshots?
j
They should show the same value. There is just a textfield with a number
z
Looks like the padding is crowding out the content. I think this was discussed a while back here, but I’m not sure what the resolution was. Could you use a different version of TextField?
j
Basic looks like this (first picture) Outlined looks like this (second picture)
z
I would think the text should be allowed to be drawn on top of the padding in these cases, this is gross default behavior for sure. I’d file a bug.
j
Okay thanks