castle icon indicating copy to clipboard operation
castle copied to clipboard

Feature Request: Resizable columns

Open jorbosaur opened this issue 5 years ago • 1 comments

It would be nice to automatically resize columns to fit the column data. It would be nice to be able to manually resize columns.

jorbosaur avatar Sep 10 '19 11:09 jorbosaur

I've kind of implemented manual resizing in this branch: https://github.com/chanon/castle/tree/custom-version

It kind of works, but the problem is there is a bug with getting it to remember the column widths properly that I couldn't fix and so dropped it. It uses 'colResizable': http://www.bacubacu.com/colresizable/

Posting in case someone wants to try to get it working.

The changes specific to resizable columns are in this commit https://github.com/chanon/castle/commit/d13c93d0eb29415c796008adfb65daaf48b6ac1e

An ideal version would also auto adjust initial column widths according to data.

And here: https://github.com/chanon/castle/tree/custom-version-2 is another alternative where I added a File/Fixed Table Layout toggle option which may result in better column widths.

chanon avatar Sep 20 '19 13:09 chanon