Tabulator: Allow resizing columns but let the last column be responsive

Created on 16 Oct 2018  路  2Comments  路  Source: olifolkerd/tabulator

Describe the bug

I tried different layouts: fitDataFill, firColumns & widthGrow and widthShrink but the last column still moves when resizing other columns. Ultimately I need the last column be responsive when resizing columns.

Tabulator Info

  • Which version of Tabulator are you using? 4.0.x
  • Post a copy of your construct object if possible so we can see how your table is setup

To Reproduce
image

Expected behavior
The last column should be responsive when resizing other columns.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome

Thanks!

(Edit: I removed the JSFiddler link because it also moves the last column, which is not desireable)

Enhancement

Most helpful comment

Hey @ngduc

Thanks for the info, i would consider this a new feature rather than a bug, it is just another way to lay out the table.

The fitColumns layout is designed to fit data to the table where possible and allow it to overflow when it is bigger than the table, which when the column resizes is the case. Which is a mode of operation used by a lot of users.

I can certainly see where this version could be useful so i will stick it on the roadmap for a future version.

Cheers

Oli :)

All 2 comments

Hey @ngduc

Thanks for the info, i would consider this a new feature rather than a bug, it is just another way to lay out the table.

The fitColumns layout is designed to fit data to the table where possible and allow it to overflow when it is bigger than the table, which when the column resizes is the case. Which is a mode of operation used by a lot of users.

I can certainly see where this version could be useful so i will stick it on the roadmap for a future version.

Cheers

Oli :)

Hey @ngduc

I have just pushed an update for this to the 4.5 branch that will be released in the next few weeks.

There will be a new fitDataStretch layout mode that will stretch the last column to fill the width of the table.

Cheers

Oli :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sphynx79 picture sphynx79  路  3Comments

jiaqianliCn picture jiaqianliCn  路  3Comments

KES777 picture KES777  路  3Comments

yaxino picture yaxino  路  3Comments

Honiah picture Honiah  路  3Comments