Fixed pager limit calculation
This commit is contained in:
parent
b80ec3fdb4
commit
dcfcc459a1
|
@ -21,7 +21,7 @@ return function(widget,list,max_elements)
|
|||
end
|
||||
end
|
||||
function new_pager:next()
|
||||
if #list >= self.index*self.max then
|
||||
if #list >= (self.index+1)*self.max then
|
||||
self.index = self.index + 1
|
||||
new_pager:update()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue