In my Retool web app, I have a Main frame that has more than one component. One of these components is the built-in Table (new) component. I want this table component to have no scrollbar, so I configure it to Height: Auto. However, the <div> that contains my table has a max-height: 100vh, so my table will still scroll.
Workarounds:
I cannot use the workaround from this post because I have > 1 component in the Main frame
Table Auto Height Scroll Bug.json (13.8 KB)
^ this is not the app in screenshots (that app contains sensitive info.), but a replication of the bug. I also included the CSS workaround in the Custom CSS, it's commented out but you can uncomment it to see it in action.
I came across something similar, if i remember right i ended up creating another container for each component which i use as a sort of wrapper. so maybe try adding a container removing its header/footer, margin and padding. this way when you put your table in it you can enable 'Expand content to fit' and the table will expand all the way to the border. you should be able to now resize the container holding your table to whatever size you want.
Can I just add to this bug that whenever there's a summary row in a table with auto height, the scroll bar will appear just to be able to scroll down the last row. It seems the auto is not considering the summary row.
Is this the same issue as the double scroll bar showing when a long table is set to auto height and grows beyond the viewable screen area? I found another thread for that that says its been resolved and can longer comment Closed thread but I still have the issue. Am I missing something?
thx @bobthebear! I think your solution would work if I were fixing the height of my table, but I want the table to be as tall as the content inside without any scrollbars (auto height). I only want one scroll bar on my page (the page scrollbar).
Thanks for chiming in! This request is in our backlog internally, so unfortunately, I don't have an update yet. I shared your feedback & +1s with the team, and I'll follow up here if it gets prioritized