core icon indicating copy to clipboard operation
core copied to clipboard

Fixed columns and sticky headers ads two scrollbars

Open pratik-nagpure opened this issue 2 years ago • 12 comments

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 avatar Nov 06 '23 07:11 pratik-nagpure

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[bot] avatar Feb 04 '24 08:02 stale[bot]

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

I am facing exactly this issue.

rOY369 avatar Sep 25 '24 14:09 rOY369

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

rOY369 avatar Sep 25 '24 14:09 rOY369

I will take a look

Domino987 avatar Sep 25 '24 14:09 Domino987

@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.

rOY369 avatar Sep 25 '24 16:09 rOY369

@Domino987 Could you please reopen this issue?

robincsamuel avatar Nov 11 '24 07:11 robincsamuel

@robincsamuel can you check out the lastest version?

Domino987 avatar Nov 11 '24 09:11 Domino987

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!

robincsamuel avatar Nov 11 '24 10:11 robincsamuel

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

Domino987 avatar Nov 11 '24 11:11 Domino987

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.

robincsamuel avatar Nov 11 '24 13:11 robincsamuel

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[bot] avatar Feb 09 '25 13:02 stale[bot]

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.

@Domino987 Did you get a chance to check the sandbox?

robincsamuel avatar Feb 09 '25 14:02 robincsamuel

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[bot] avatar May 10 '25 14:05 stale[bot]