Skip to content

Commit

Permalink
Remove hard coded height adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Chance authored and Jyoti Puri committed Dec 2, 2014
1 parent c0183a2 commit f353c06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/features/paging/js/ui-grid-paging.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@
var options = $scope.grid.options;

uiGridCtrl.grid.renderContainers.body.registerViewportAdjuster(function (adjustment) {
var height = gridUtil.elementHeight($elm) + (options.enableHorizontalScrollbar === uiGridConstants.scrollbars.ALWAYS ? 15 : 10);
adjustment.height = adjustment.height - height;
adjustment.height = adjustment.height - gridUtil.elementHeight($elm);
return adjustment;
});

Expand Down
3 changes: 2 additions & 1 deletion src/features/paging/less/ui-grid-paging.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
left: 0;
bottom: 0;
width: 100%;
margin-bottom: 2px;
padding-top: 3px;
padding-bottom: 3px;
}

.ui-grid-pager-container {
Expand Down

0 comments on commit f353c06

Please sign in to comment.