File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,12 @@ angular.module('ui.grid').directive('uiGrid',
205205 // If the grid isn't tall enough to fit a single row, it's kind of useless. Resize it to fit a minimum number of rows
206206 if ( grid . gridHeight < grid . options . rowHeight ) {
207207 // Figure out the new height
208- var newHeight = grid . options . minRowsToShow * grid . options . rowHeight ;
208+ var contentHeight = grid . options . minRowsToShow * grid . options . rowHeight ;
209+ var headerHeight = grid . options . hideHeader ? 0 : grid . options . headerRowHeight ;
210+ var footerHeight = grid . options . showFooter ? grid . options . footerRowHeight : 0 ;
211+ var scrollbarHeight = grid . options . enableScrollbars ? gridUtil . getScrollbarWidth ( ) : 0 ;
212+
213+ var newHeight = headerHeight + contentHeight + footerHeight + scrollbarHeight ;
209214
210215 $elm . css ( 'height' , newHeight + 'px' ) ;
211216
You can’t perform that action at this time.
0 commit comments