You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will size itself based on the number of text lines in the state, and the heightIn modifier. When empty, it matches the min; when there are too many lines to fit in the max it'll stop growing and start scrolling.
It may be worth simplifying how the TextArea scrollable layout is handled, by decoupling it from ScrollableContainer, and/or fix the ScrollableContainer implementation. The main issue is that doing a 2D scrollable container adds a lot of complexity and requires a number of compromises, and it's even unclear if 2D scrolling in Compose for Desktop is working at all anyway. We should likely deprecate/remove the 2D version and focus on one axis only until proper support at a higher level than draggable2D is available in Compose.
When you have a BTF:
It will size itself based on the number of text lines in the state, and the
heightIn
modifier. When empty, it matches the min; when there are too many lines to fit in the max it'll stop growing and start scrolling.However, the same does not happen with
TextArea
:The
TextArea
will always stretch until max, regardless of its text contents.The text was updated successfully, but these errors were encountered: