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

Setting a column width on some columns of the Dataframe breaks other columns #8099

Open
1 task done
pngwn opened this issue Apr 22, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working 💾 Dataframe

Comments

@pngwn
Copy link
Member

pngwn commented Apr 22, 2024

Describe the bug

If you set a column_width for some but not all columns of a dataframe it causes other columns to have weird sizing, that is inconsistent with how the dataframe normally renders.

The bug is present in this demo, only the first two columns have width set in this demo. https://huggingface.co/spaces/pngwn/df_scroll_bug_fix

This is the same demo without the widths set, the column sizing is totally different for all columns, not just the first two.

https://huggingface.co/spaces/pngwn/df_scroll_bug_fix-two

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

The bug is present in this demo, only the first two columns have width set in this demo. https://huggingface.co/spaces/pngwn/df_scroll_bug_fix

Screenshot

No response

Logs

No response

System Info

4.27.0

all browsers but worse on firefox.

Severity

I can work around it

@pngwn pngwn added bug Something isn't working 💾 Dataframe labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 💾 Dataframe
Projects
None yet
Development

No branches or pull requests

1 participant