-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rightmost columns not visible in wide tables #8
Comments
It appears that if I could set freezeHeader:true in table properties, then css class "scrollingtable" would be exposed: ts-react-json-table/src/table.tsx Line 29 in fb1d6dc
I happen to want sticky thead at top:0 anyway. I tried:
This does expose the scrollingtable className, but there is no noticeable freezeHeader behavior. So I added .scrollingtable div { to my existing thead th { The overflow:hidden still overrode my overflow:visible, so I made mine !important .scrollingtable div { However, freezeHeader has an unacceptable side-effect of causing all the column header text to be duplicated. It causes a childless th to change to a th with a div child, and that child has two div's with the same text. The duplication seems intentional at ts-react-json-table/src/table.tsx Line 173 in fb1d6dc
I have ts-react-json-table@0.1.2 |
Not sure why its done that way, will have to look into it. EDIT: This is based off this StackOverflow entry: https://stackoverflow.com/questions/15307135/freezing-fixing-the-top-header-row-of-a-table/25819112#25819112 and does require duplication. Take a look at your CSS there might be something interfering with default |
I have one of these tables that is 1300px wide, and the rightmost columns aren't visible due to the overflow: hidden on the outermost div of the JsonTable render. There is no id nor class on this rendered div, so I can't override this style.
Can you suggest another way?
The text was updated successfully, but these errors were encountered: