7
Views
3
Comments
Solved
RWA Table not scrolling x axis
Question
Application Type
Reactive

I have a table, that is too wide for the screen and flows off the right.

I'd like it to scroll, horizontally but have not been able to make it do so. 


I've added overflow-x: scroll to the table element, and a custom class, but no changes.


What's the secret to getting it to scroll to the right and left?

2024-06-01 07-14-16
Vaishali Thakur
Solution

Hey, @Thomas Gooch 

create your own CSS for vertical scroll or use the vertical scroll class on your table container.

on your screen widget tree, you have one = container - table - header row - row

So now you must create CSS (Example: scroll-vertical ) and use this class on your container properties. Style classes "scroll-vertical " are like this type.

then 

.scroll-vertical {

overflow-y: hidden;

overflow-x: scroll;

height:100%;

width:600px;

}

try this I hope this was helpful for you 

thanks 



UserImage.jpg
Thomas Gooch

That's it- it wasn't in a container. Put it in a container and applied the class and it works.

2024-06-01 07-14-16
Vaishali Thakur
Solution

Hey, @Thomas Gooch 

create your own CSS for vertical scroll or use the vertical scroll class on your table container.

on your screen widget tree, you have one = container - table - header row - row

So now you must create CSS (Example: scroll-vertical ) and use this class on your container properties. Style classes "scroll-vertical " are like this type.

then 

.scroll-vertical {

overflow-y: hidden;

overflow-x: scroll;

height:100%;

width:600px;

}

try this I hope this was helpful for you 

thanks 



UserImage.jpg
Thomas Gooch

That's it- it wasn't in a container. Put it in a container and applied the class and it works.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.