Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

Multi-Column Layout Pagination is Broken #283

@matwood

Description

@matwood

If you look here https://github.com/readium/readium-shared-js/blame/develop/js/views/reflowable_view.js#L694 and then here https://github.com/readium/readium-shared-js/blame/develop/js/views/reflowable_view.js#L504 there are a number of issues that I want to fix.

  • First the math does not work: (a-b)/c = j is not reversed with (j+b)*c It needs to be (j*c)+b The error shows up on books that use the columnGap.
  • Second the rounding causes 1 px errors that propagate as the pages are turned. In multi-column layouts with tight margins the errors show up quickly by clipping text on the left.
    I’m proposing to add a new variable to the paginationInfo which will store the pageOffsetSize instead of rebuilding it from the column size every time.

Thoughts? I open to fixing in a different manner.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions