Errors when groups property is set in grid options in 2.0.7 #528
Description
I have a grid that I want to be pre-grouped so I have groups set to the appropriate field like so:
$scope.gridOptions = { data: 'gridData', groups: ['advertiser_org_id'],....
This worked fine until I upgraded to 2.0.7. Now I get these errors:
TypeError: Cannot call method 'appendChild' of undefined
at Object.n.BuildStyles (http://nymphicus.local:5008/lib/ng-grid-2.0.7.min.js:1:5313)
at g.getGrouping (http://nymphicus.local:5008/lib/ng-grid-2.0.7.min.js:2:7753)
at g.filteredRowsChanged (http://nymphicus.local:5008/lib/ng-grid-2.0.7.min.js:2:5331)
at Object.fn (http://nymphicus.local:5008/lib/ng-grid-2.0.7.min.js:1:27750)
at Object.e.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js:86:409)
at Object.e.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js:88:506)
at e (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js:95:38)
at p (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js:98:123)
at XMLHttpRequest.t.onreadystatechange (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js:99:259) angular.min.js:62
TypeError: Cannot call method 'scrollTop' of null
at Object.n.UpdateGridLayout (http://nymphicus.local:5008/lib/ng-grid-2.0.7.min.js:1:4446)
at Object.n.RebuildGrid (http://nymphicus.local:5008/lib/ng-grid-2.0.7.min.js:1:5802)
at Object.fn (http://nymphicus.local:5008/lib/ng-grid-2.0.7.min.js:1:27861)
at Object.e.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js:86:409)
at Object.e.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js:88:506)
at e (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js:95:38)
at p (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js:98:123)
If I remove the groups property the errors go away and if I use showGroupPanel = true then it all works as intended.