compose-data-table icon indicating copy to clipboard operation
compose-data-table copied to clipboard

Can nested scrolling be disabled?

Open firoze opened this issue 9 months ago • 1 comments

One of the cells in my table is a text field. If I fill the text field enough, then the table itself begins to scroll horizontally. I wanted to know if there was a way to configure the state to disable nested scrolling (or control scrolling in general via DataTableState)

firoze avatar Mar 17 '25 21:03 firoze

I think you're experiencing what happens when the table column widths change. I'm not sure if this behavior is a bug or not. At the moment, scrolling cannot be disabled. It's only enabled when the table doesn't fit the bounds.

Can you give a clear description of what you would want to happen in this case? If you don't want the TextField to expand, you need to set the limits yourself. Either on TextField or on the column.

sproctor avatar Mar 18 '25 14:03 sproctor

I'm not clear on what the issue is here. If you can make a reproduction demonstrating the problem, I can try to address it. I'm going to close this because there's been no response for 2 months.

sproctor avatar May 28 '25 15:05 sproctor