Skip to content

Commit

Permalink
fix(pagination): remove unneeded height adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
classix-od authored and mportuga committed Nov 6, 2017
1 parent e137e6b commit 4c667e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/features/pagination/js/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,11 @@

var options = uiGridCtrl.grid.options;


uiGridCtrl.grid.renderContainers.body.registerViewportAdjuster(function (adjustment) {
adjustment.height = adjustment.height - gridUtil.elementHeight($elm, "padding");
if (options.enablePaginationControls) {
adjustment.height = adjustment.height - gridUtil.elementHeight($elm, "padding");
}
return adjustment;
});

Expand Down

0 comments on commit 4c667e7

Please sign in to comment.