```@param singleLine when set to true, this text f...
# compose
o
Copy code
@param singleLine when set to true, this text field becomes a single horizontally scrolling text field instead of wrapping onto multiple lines.
How can I disable this scrolling in
BasicTextField
? I want to use
TextLayoutResult#didOverflowWidth
inside
onTextLayout
to decrease the font size, but that doesn’t work; the text always fits because of the scrolling text field.
s
I'd try and look at the implementation of BasicTextField and figure out where this scrolling behavior comes from. If you do you'll find out if it's configurable or not. If it's not, I guess the solution*might* be to write your own without this bit of code, but definitely sounds like it'd be a hell of a thing to try to do
e
You should use maxLines = 1 instead of singleLine