dobtco / jquery-resizable-columns

Resizable table columns for jQuery.
http://dobtco.github.io/jquery-resizable-columns
535 stars 170 forks source link

Fix issue46 #47

Closed deathwebo closed 9 years ago

deathwebo commented 9 years ago

Option onStartResize added to the plugin, to allow or prevent the plugin from resizing the table columns on start.

This should fix the issue #46

Craga89 commented 9 years ago

Could this not be achieved by simply setting the store option to null?

deathwebo commented 9 years ago

I believe the plugin does an initial resize, and set all the columns to an equal width

Craga89 commented 9 years ago

No initial resizing is done if no prior widths are found in the localStorage entry for the table.

However, all columns are assigned a percentage width on load, which is calculated automatically. If you've already applied a percentage width or should probably just ignore that column. We can probably improve it that way.

The problem I forsee is for tables with table-layout: auto, where percentage values don't necessarily reflect exact pixel ratios between columns.

deathwebo commented 9 years ago

@Craga89 Thanks! That did the trick, it was just that I couldn't find any documentation for this.