ColResize icon indicating copy to clipboard operation
ColResize copied to clipboard

Change relative column size (percent)

Open TomSmartBishop opened this issue 7 years ago • 2 comments

Hi Can you maybe give me some pointer what to change in case I just want to change/resize the percentage distribution of the table columns?

Background is that I do not want vertical scrollbars and always fit everything into the cells (with ellipsis or line breaks depending on the cell), however it would be great if the user could change the size distribution.

The table is already setup with percent-wise column widths.

TomSmartBishop avatar Oct 17 '18 09:10 TomSmartBishop

@TomSmartBishop Sorry, I don't quite follow what you mean. Could you elaborate please? The positioning of the resize bars are generated depending on the size of the table columns, not the other way round.

Are you referring to functionality of this plugin or DataTable in general? If it's the later, you'd best post an issue over at https://github.com/DataTables/DataTables

smasala avatar Oct 18 '18 19:10 smasala

I specify my column width in % - so no absolute numbers. And I would like to be able to resize the columns and keep % values for the width: | 20% | 60 % | 20% | now resize to make eg. the first column a bit bigger to: | 28% | 52% | 20% |

When I use this plugin I get absolute px values for the column widths, which I don't want. I want to keep my table flexible and just allow to change the relative distribution of the columns.

Hope that's clear enough. Thomas

TomSmartBishop avatar Oct 26 '18 11:10 TomSmartBishop