[Question] GetColumnWidth of plugin 'autoColumnSize' returns undefined

Hi there:

Please try this one: http://jsfiddle.net/semix/4ddz2ruz/
And pay attention to the console log output.

Also be noted that it seems the hot.getColWidth does not return the acutal DOM width, but the defined value passed to colWidth property, is this an expected behavior?

Thanks
Semix

I believe that this issue has been already raised at getColWidth(col) does not return actual col width · Issue #2090 · handsontable/handsontable · GitHub

Can you confirm?

Hi @aleksandra_budnik
Thanks for the reply :slight_smile:
It seems that github issue only tracks the getColWidth problem, but what about the getColumnWidth of ‘autoColumnSize’ plugin?

Oh yes! Sorry, my bad. I was thinking about the getColWidth only. The getColumnWidth from the autoColumnSize plugin

I believe that returning default for columns that haven’t been widened/shortened via any external method is correct as we have this line in the autoColumnSize plugin’s intro

By default, the plugin is declared as undefined, which makes it enabled (same as if it was declared as true).
Enabling this plugin may decrease the overall table performance, as it needs to calculate the widths of all cells to
resize the columns accordingly.