EvHaus / doby-grid

An HTML table element on steroids.
Other
14 stars 5 forks source link

Feature columnautowidth #104

Closed ckosmowski closed 10 years ago

ckosmowski commented 10 years ago

As described in https://github.com/globexdesigns/doby-grid/issues/98 i added an option "fitColumnsToHeader". If activated:

1.) All Columns will be resized so that the complete content of theire headers is visible 2.) The minWidth of all columns will be set to whatever is larger the initial minWidth or the size of the content in the header.

The result is, that columns cannot be resized to be smaller than their headers content.

EvHaus commented 10 years ago

Can you please also make sure this new param can be toggled via grid.setOptions()?

ckosmowski commented 10 years ago

With the last commit, this should be it.

EvHaus commented 10 years ago

Looks like enabling "headerContent" via setOptions works, but disabling doesn't. I'll fix that on my end though. Thanks for this.