diff --git a/bin/Controls/Pagination.js b/bin/Controls/Pagination.js index db8dad67358c5d2000f91557f756b18aab440f37..fd38c38b174788d4a6a528fd5a11dcb97f1c28d3 100644 --- a/bin/Controls/Pagination.js +++ b/bin/Controls/Pagination.js @@ -383,10 +383,11 @@ define('package/quiqqer/bricks/bin/Controls/Pagination', [ // we must calc the max sheets // calc with last sheets, its the longest - var lastSize = this.$Last.getSize().x, - comSize = this.$Last.getComputedSize(); + var lastSize = this.$Last.getSize().x; - lastSize = lastSize + comSize['margin-right'] + comSize['margin-left']; + lastSize = lastSize + + this.$Last.getStyle('marginRight').toInt() + + this.$Last.getStyle('marginLeft').toInt(); this.$showMax = (elmSize.x / lastSize).floor();