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

Toggling autoSize Columns always calls "autoSizeColumns" even if the value is false #141

Open
ckosmowski opened this issue Oct 8, 2014 · 0 comments

Comments

@ckosmowski
Copy link
Collaborator

When i use setOptions to set autoSizeColumns to false, it will still call the autoSizeColumns() method anyway.

Please see the following code snippet:

// If toggling auto column width - resize
if ('autoColumnWidth' in options) {
    // Also make sure that the right resize handles are drawn
    setupColumnResize();
    autosizeColumns();

    // Fire column resize event
    self.trigger('columnresize', this._event, {});
}

This is where the autoColumnWidth gets "toggled". autosizeColumns is executed if the autoColumnWidth option exists in options. This is also true if the property is actually set to false leading to unwanted behaviour.

Is this a bug, or is this desired behaviour?

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

1 participant