domino-ui icon indicating copy to clipboard operation
domino-ui copied to clipboard

Data table with fixed height, but flexible (auto) column width.

Open foal opened this issue 5 years ago • 4 comments

foal @foal нояб. 05 08:25 Is it possible somehow to have data table with a fixed height, but flexible column width?

Ahmad K. Bawaneh @vegegoku нояб. 05 08:29 did you try with a fixed table .. but without fixing the columns widths? set the table as fixed but dont fix any column width

foal @foal нояб. 05 09:31 Yes. It didn't work

Ahmad K. Bawaneh @vegegoku нояб. 05 09:32 i will find some time today to work on your issues so basicly you need to fix only the table height

foal @foal нояб. 05 09:35 Thank you! Yes, I need the table with fixed height (and body scroll if necessary).

foal avatar Nov 07 '18 12:11 foal

Now it looks like image

foal avatar Nov 07 '18 12:11 foal

Mayby this will help to solve the issue https://codepen.io/yavuzselim/pen/LNYrBd

foal avatar Nov 07 '18 12:11 foal

Mayby this will help to solve the issue https://codepen.io/yavuzselim/pen/LNYrBd

In the codepen the width of the columns isnt auto, it is actually uses a percentage widths. this behavior is achievable but it requires all columns to have a percent width and the total should be 100% in order to render the table correctly. @foal if you still think it is worth the efforts i will gladly implement it. but as i said then you have to set the percent width for all columns.

vegegoku avatar Nov 08 '18 23:11 vegegoku

I know this is an old request, but I would vote +1 for this. I have a couple of tables where I would like the width to be flexible but the height fixed.

howudodat avatar Dec 21 '23 21:12 howudodat