Skip to content

Commit 4c667e7

Browse files
classix-odmportuga
authored andcommitted
fix(pagination): remove unneeded height adjustment
1 parent e137e6b commit 4c667e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/features/pagination/js/pagination.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,11 @@
403403

404404
var options = uiGridCtrl.grid.options;
405405

406+
406407
uiGridCtrl.grid.renderContainers.body.registerViewportAdjuster(function (adjustment) {
407-
adjustment.height = adjustment.height - gridUtil.elementHeight($elm, "padding");
408+
if (options.enablePaginationControls) {
409+
adjustment.height = adjustment.height - gridUtil.elementHeight($elm, "padding");
410+
}
408411
return adjustment;
409412
});
410413

0 commit comments

Comments
 (0)