Skip to content

Commit

Permalink
Fixed grid height growing indefinitely with auto-resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick.winkler authored and mportuga committed Aug 11, 2017
1 parent 6711c72 commit 553d72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/factories/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,7 @@ angular.module('ui.grid')
}

if (container.header) {
var headerHeight = container.headerHeight = getHeight(container.headerHeight, parseInt(gridUtil.outerElementHeight(container.header), 10));
var headerHeight = container.headerHeight = getHeight(container.headerHeight, gridUtil.outerElementHeight(container.header));

// Get the "inner" header height, that is the height minus the top and bottom borders, if present. We'll use it to make sure all the headers have a consistent height
var topBorder = gridUtil.getBorderSize(container.header, 'top');
Expand Down

0 comments on commit 553d72b

Please sign in to comment.