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

colResizeStep ignored when inserting a new column #66

Open
madc opened this issue Jul 28, 2015 · 2 comments
Open

colResizeStep ignored when inserting a new column #66

madc opened this issue Jul 28, 2015 · 2 comments

Comments

@madc
Copy link

madc commented Jul 28, 2015

For my setup, I only need four sizes of columns (1/4, 1/2, 3/4, full width). To accomplish this, i've set the option colResizeStep to 3. This would work, but every new colum (inserted with the + button) has the size of 1. I think, this new column shoud have a size of 3, othwise, it breaks resizing the columns.

@neokoenig
Copy link
Owner

Could change:

// Add new column to existing row
        }).on("click", "a.gm-addColumn", function(){
            $(this).parent().after(gm.createCol(2));
... etc

To

// Add new column to existing row
        }).on("click", "a.gm-addColumn", function(){
            $(this).parent().after(gm.createCol(gm.options.colResizeStep));
... etc

or possibly add it as an additional option. You're right, as in '2' is hard coded in at the moment.

@madc
Copy link
Author

madc commented Jul 28, 2015

Thanks for the quick reply. An options would of course be convenient, but i can confirm, that this would fix the issue.

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