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

Fixes issue with text clipping from page turning. Fixes #283 #288

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

matwood
Copy link
Contributor

@matwood matwood commented Apr 26, 2016

  • With certain window sizes the left text gets cut off from rounding
  • on the page slide size.

* With certain window sizes the left text gets cut off from rounding
* on the page slide size.
@@ -693,7 +693,7 @@ var ReflowableView = function(options, reader){
_$htmlBody.css('padding', 0);

_paginationInfo.rightToLeft = _spine.isRightToLeft();

_paginationInfo.pageOffsetSize = _htmlBodyIsVerticalWritingMode ? _lastViewPortSize.height : (_lastViewPortSize.width + _paginationInfo.columnGap);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, _htmlBodyIsVerticalWritingMode ? _lastViewPortSize.height : (_lastViewPortSize.width + _paginationInfo.columnGap) replaces (_paginationInfo.columnWidth + _paginationInfo.columnGap) * _paginationInfo.visibleColumnCount (see onPaginationChanged_() _paginationInfo.pageOffset = _paginationInfo.pageOffsetSize * _paginationInfo.currentSpreadIndex; in the source above) where _paginationInfo.columnWidth was Math.round(((_htmlBodyIsVerticalWritingMode ? _lastViewPortSize.height : _lastViewPortSize.width) - _paginationInfo.columnGap * (_paginationInfo.visibleColumnCount - 1)) / _paginationInfo.visibleColumnCount); ... I have to look at the arithmetics to make sure this does not affect vertical writing mode, or some other column-gap related edge-case computations :)

@danielweck danielweck self-assigned this Jun 9, 2016
@danielweck danielweck changed the title Fixes issue with text clipping from page turning. Fixes issue with text clipping from page turning. Waffle: connects to #283 Jun 9, 2016
@danielweck danielweck changed the title Fixes issue with text clipping from page turning. Waffle: connects to #283 Fixes issue with text clipping from page turning. Fixes #283 Jun 9, 2016
@danielweck
Copy link
Member

Competing solution? #188

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants