Skip to content
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

Fixed columns and sticky headers ads two scrollbars #807

Open
pratik-nagpure opened this issue Nov 6, 2023 · 10 comments
Open

Fixed columns and sticky headers ads two scrollbars #807

pratik-nagpure opened this issue Nov 6, 2023 · 10 comments
Labels
question Further information is requested

Comments

@pratik-nagpure
Copy link

When I use
fixedColumns: { left: 1 }, headerStyle: { position: "sticky", top: 0 },
two scrollbar gets added. need help to fix this.

Here is the sandbox link for the same

Thanks

@pratik-nagpure pratik-nagpure added the question Further information is requested label Nov 6, 2023
Copy link

stale bot commented Feb 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

@stale stale bot added the wontfix This will not be worked on label Feb 4, 2024
@stale stale bot closed this as completed Feb 13, 2024
@rOY369
Copy link

rOY369 commented Sep 25, 2024

Hi @pratik-nagpure any chance you were able to work around this problem?

I am facing exactly this issue.

@rOY369
Copy link

rOY369 commented Sep 25, 2024

@Domino987 can you look at this once if there is a workaround for this or any fix planned for this issue?

@Domino987
Copy link
Contributor

I will take a look

@rOY369
Copy link

rOY369 commented Sep 25, 2024

@Domino987 for now I was able to work around this issue by adding cell style in the first column which I want as fixed.
Not using the fixedColumns prop since it is adding two scrollbars.

        "cellStyle": {
            "backgroundColor": "black",
            "position": "sticky",
            "left": 0,
            "zIndex": 1
        }

Adding this in the first column is making it fixed and working fine.

@robincsamuel
Copy link
Contributor

@Domino987 Could you please reopen this issue?

@Domino987
Copy link
Contributor

@robincsamuel can you check out the lastest version?

@robincsamuel
Copy link
Contributor

Okay, I just updated and the double scrollbar issue is gone. However, the table is still messed up.

While the header is sticky for fixed columns, it doesn't work for others. Also, the scroll is weird.

Screenshot 2024-11-11 at 3 45 16 PM

Here's the configuration,

options={{
        headerStyle: {
          position: 'sticky',
          backgroundColor: theme.palette.grey['50'],
        },
        maxBodyHeight: 'calc(100vh - 350px)',
        fixedColumns: {
          left: 1,
          right: 1,
        },
}}

Thanks!

@Domino987
Copy link
Contributor

Can you create a sandbox with your exact setup and the latest version?

@Domino987 Domino987 reopened this Nov 11, 2024
@robincsamuel
Copy link
Contributor

Can you create a sandbox with your exact setup and the latest version?

Sure, here's the sandbox, https://codesandbox.io/p/sandbox/laughing-grass-dvmwfh. Please scroll down to the table to see the issue.

@stale stale bot removed the wontfix This will not be worked on label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants