[ http://jira.codehaus.org/browse/DISPL-193?page=comments#action_30736 ]
     
Jan van de Sandt commented on DISPL-193:
----------------------------------------

I think the problem is in the SmartListHelper class on line 285:

startPage = Math.max(Math.min(this.currentPage - groupSize / 2, this.pageCount 
- groupSize), 1);

To get the correct results this should be changed to:

startPage = Math.max(Math.min(this.currentPage - groupSize / 2, this.pageCount 
- groupSize + 1), 1);


> Incorrect numbered pages list in header
> ---------------------------------------
>
>          Key: DISPL-193
>          URL: http://jira.codehaus.org/browse/DISPL-193
>      Project: DisplayTag
>         Type: Bug
>   Components: Tag Library
>     Versions: 1.0
>     Reporter: Jan van de Sandt
>     Priority: Minor
>  Attachments: screenshot-1.jpg
>
>
> When going through a list of 236 items with 15 rows per page the header shows 
> only the page numbers upto 15 (instead of 16). Using the "next" functionality 
> you can go to the last page, but then no "current page" is displayed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to