You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2013/12/11 17:53:10 UTC

[jira] [Commented] (OFBIZ-5422) htmlFormMacroLibrary.ftl renderNextPrev does not calculate number of pages correctly

    [ https://issues.apache.org/jira/browse/OFBIZ-5422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845530#comment-13845530 ] 

Jacques Le Roux commented on OFBIZ-5422:
----------------------------------------

Could you provide an example to reproduce the issue?

> htmlFormMacroLibrary.ftl renderNextPrev does not calculate number of pages correctly
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5422
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5422
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Gareth Carter
>            Priority: Minor
>         Attachments: htmlFormMacroLibrary.patch
>
>
> There are 2 issues with the existing code.
> 1 - floor is applied to viewSize only not the computed value
> 2 - if the listSize divides with viewSize evenly, you'll get one extra
> eg
> 24/2=12 - no of pages = 13
> 24/5=4.8 - no of pages = 5



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)