       tbody = element.find "tbody"
       tr = tbody.find "tr"
       tr.attr("ng-repeat", "item in #{listName} #{filterString} | orderBy:predicate:descending")
+
+      tds = element.find("td")
+      tdString = ""
+      for td in tds
+        tdString += "<td>{{item}}&nbsp;</td>"
+
+
+      fillerTr = angular.element("<tr>#{tdString}</tr>")
+      fillerTr.attr("ng-repeat", "item in #{paginationName}.getFillerArray() ")
+
+      tbody.append(fillerTr)
 
       {
         post: ($scope, $element, $attributes) ->

        if $scope.list
          $scope.stub.itemsPerPage * $scope.stub.currentPage - $scope.list.length

      $scope.goToPage = (page) ->
        page = Math.max(0, page)
        page = Math.min($scope.stub.numberOfPages - 1, page)


      constructHeader(element)

      # TODO: better handling of the following if/else stuff
      paginationName = attributes.pagination

