Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS ng-Grid and ngGridFlexibleHeightPlugin not working as I expect

I am trying to use Angular ng-grid to show some dynamic content. The grid will have 0 - 25 rows. I want to have a minimum size and then have the ng-grid auto adjust the height as items get added to the array. For some reason the auto size stops after adding 6-7 items (it even seems to depend on your resolution).

Can anyone help? What am I missing? I have a Plunker below that shows the issue.

http://plnkr.co/edit/frHbLTQ68GjMgzC59eSZ?p=preview

like image 838
Aaron Hickman Avatar asked May 20 '13 05:05

Aaron Hickman


1 Answers

If you are still having issues I would suggestion not using the ng-grid and create your layout directly in html (Use DIVs, column width formatting, styles, etc...). Then populate your new layout using your $scope. Between variables, models and ng-repeat you should be able to do everything you need.

like image 156
Timothy Ingledue Avatar answered Nov 04 '22 16:11

Timothy Ingledue