-
Notifications
You must be signed in to change notification settings - Fork 13
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
Html5Table alignment when scrollbar appears #37
Comments
@realdreamer I've also found this issue as well. If you simply need a quick and dirty hack to align the header columns, though, you can set the HeaderRow component to have a |
Hi @realdreamer Another possibility is to change the width of the header based on the size of the scrollbar. For example, if the scrollbar is Thanks for getting involved |
Or you can add to your CSS file
|
Well, I'm trying to set width -8px only if the table has a scrollbar.
|
@Joiel I liked the above one, but I'm little concerned about using direct class names instead of using |
@Joiel @pupudu - Thank you for your input guys 👍 . But, I'm looking to solve it in a better way and also wanna fix the scrollbar issue on the header only if the I tried the below approach, but I'm having a problem with the two
|
@realdreamer @grgp @Joiel With this, temporary solutions like forced scrollbars in header and using css classes to change header size will slightly break the UI. The solution for those problems would be to simply remove those temporary workarounds. Let me know your thoughts. Cheers 👍 |
@pupudu I'm still facing the issues with scrollbar even with |
@realdreamer That's sad. Could you give a bit more information about the issue pls?
In either case, it would cool if you could attach a screenshot, (and/or) provide a sandbox to reproduce the issue. Many thanks, |
I can see this scroll bar problem as fixed when content is more than table height, but offset when content is less than table height. Matching the sandbox. I'm on Windows / Chrome, |
I solved this by adding what @Joiel said and adding a margin to last td of each row in table-body if the the tableData has less than 10 lines. I pass "marginSmallTableData" class as prop to custom Td.
|
I too am seeing this issue. It sometimes works but sometimes does not. I think updating the CSS for the header row is probably the easiest work around. |
Basically seeing that the resize width is 0 |
When the content is more than
table
height, scrollbar appears for the table body, then it breaks the alignment withtable-header
andtable-body
. You can see this issue in the document example itself. https://window-table.netlify.com/#blazing-fast-The text was updated successfully, but these errors were encountered: