Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for issue 1549. Book View incorrect for R-to-L Manuscripts. #1550

Conversation

Jennief
Copy link
Contributor

@Jennief Jennief commented Oct 3, 2018

It seems that viewingDirection was not passed to BookView so it was defaulting to L-to-R behaviour. Although 'vDirectionStatus' was used in parts.

The indexing seems to assume that the current index would begin at 0 on the right hand side, but it begun at the last index (so it would error for documents with an odd length).

Instead I have used a adjusted index for right-to-left mode to work out the odd/even case that behaves as expected (right starts from 0 in R-to-L mode).

@coveralls
Copy link

coveralls commented Nov 5, 2018

Coverage Status

Coverage decreased (-0.07%) to 73.738% when pulling 8450524 on Jennief:issue-1549-Book-View-incorrect-for-R-to-L-manuscripts into 312da2f on ProjectMirador:develop.

@mejackreed mejackreed merged commit 0406537 into ProjectMirador:develop Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants