inputs icon indicating copy to clipboard operation
inputs copied to clipboard

Table column widths ignored when scrolled down

Open hellonearthis opened this issue 3 years ago • 1 comments

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.

hellonearthis avatar May 11 '22 13:05 hellonearthis

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?

mbostock avatar May 11 '22 14:05 mbostock