ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

how to set height of grid so that it will fit its parent container

Open rbansalit opened this issue 13 years ago • 3 comments

Hi

I need to set grid height as 100% to its parent.

rbansalit avatar Jun 06 '13 14:06 rbansalit

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.

davidagee avatar Jun 06 '13 14:06 davidagee

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>

rngadam avatar Aug 19 '13 08:08 rngadam

Even if i move the horizontal bar...the data is moving but the columns are fixed and not moving at all.....

susharma-equinix avatar Oct 13 '15 08:10 susharma-equinix