how to set height of grid so that it will fit its parent container
Hi
I need to set grid height as 100% to its parent.
To do this, I set the parent container to position:absolute or relative, then set the ng-grid to position:absolute;top:0;left:0;right:0;bottom:0. Works like a charm.
Thanks for the tip David! Seems to work like a charm.
Is there any reason why this isn't set out of the box in ng-grid.css?
I was a bit confused to see my ngGrid with an height of 54px ^_^
FYI, this is my view (which in turn is inside a Twitter Bootstrap <div class="container-fluid">:
<div class="row-fluid">
<div class="span12">
<div class="gridStyle" ng-grid="gridOptions">
</div>
</div>
</div>
Even if i move the horizontal bar...the data is moving but the columns are fixed and not moving at all.....