Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Resizable columns #102

Open
jorbosaur opened this issue Sep 10, 2019 · 1 comment
Open

Feature Request: Resizable columns #102

jorbosaur opened this issue Sep 10, 2019 · 1 comment

Comments

@jorbosaur
Copy link

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 jorbosaur changed the title Feature request: Resizable columns Feature Request: Resizable columns Sep 10, 2019
@chanon
Copy link
Contributor

chanon commented Sep 20, 2019

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
chanon@d13c93d

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants