observablehq / inputs

Better input elements
https://observablehq.com/framework/lib/inputs
ISC License
125 stars 34 forks source link

Table column widths ignored when scrolled down #223

Open hellonearthis opened 2 years ago

hellonearthis commented 2 years ago

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 commented 2 years ago

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?