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

Table column widths ignored when scrolled down #223

Open
hellonearthis opened this issue May 11, 2022 · 1 comment
Open

Table column widths ignored when scrolled down #223

hellonearthis opened this issue May 11, 2022 · 1 comment

Comments

@hellonearthis
Copy link

I have a Table that has the width set like below. When the data is scrolled down to show more data the width: set is ignored and set to the width of the content.

  columns: ['title', "budget", "revenue"],
  width: {
    title:80,
    budget:75,
    revenus:50
  }
})

https://observablehq.com/d/1c8e433aa1faacd5

I expected the width I set to be locked in.

@mbostock
Copy link
Member

The width style is getting set correctly, it’s just the browser is ignoring it because the content is too big. I guess maybe we have to provide a way to set the max-width style, too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants