angular-ui/ng-grid — pull request #508 by ebbe-brandstrup (2013-06-25 09:04:01+00:00)
Title: Fixes and improvements in configureColumnWidths

configureColumnWidths
----------------------------------
* Columns sized with * or % now expand / shrink as other * or %-based columns are hidden / shown
* Note: the changes auto-expand/shrink only take effect on-the-fly if using the ng-grid-layout plugin
* Works with grouping and when enabling the selection checkbox row (showSelectionCheckbox)
* Bugfixes in configureColumnWidths
* Re-ordered columns now keep their width setup
* Fixed "asteriskNum" so it no longer includes hidden columns (was checking .visible on a columnDefs column instead of the matching ngColumn)
* Fixed "totalWidth" so it no longer includes hidden columns when using px values for width (was checking .visible on a columnDefs column instead of the matching ngColumn)
* Fixed ngColumn width being initialized to undefined when using "auto" for width, regardless of "minWidth" settings (was checking .minWidth on a columnDefs column instead of the matching ngColumn)

Renamed "col" to "colDef" in configureColumnWidths() in the places where "col" was a column from "columnDefs". It made it clearer for me whether I was referring to a ngColumn or a column from columnDefs. There were a couple of bugs caused by that (col.visible incorrectly accessed on columnDefs objects instead of ngColumns, and the like).

ng-grid-layout plugin
-----------------------------
* ng-grid-layout plugin now listens to 'ngGridEventColumns' events and then rebuilds the grid

ng-grid-flexible-height plugin
----------------------------------------
* Bugfixes in ng-grid-flexible-height
* The plugin couldn't shrink the grid, only grow it
* Using domUtilityService.UpdateGridLayout instead of grid.refreshDomSizes which correctly grows the grid if it's been shrunk (e.g. when paging to the last page and it has few rows + the plugin has a smaller min. height than what's needed on the other pages)