Fixes issue with text clipping from page turning. Fixes #283#288
Fixes issue with text clipping from page turning. Fixes #283#288matwood wants to merge 1 commit intoreadium:developfrom
Conversation
* With certain window sizes the left text gets cut off from rounding * on the page slide size.
|
|
||
| _paginationInfo.rightToLeft = _spine.isRightToLeft(); | ||
|
|
||
| _paginationInfo.pageOffsetSize = _htmlBodyIsVerticalWritingMode ? _lastViewPortSize.height : (_lastViewPortSize.width + _paginationInfo.columnGap); |
There was a problem hiding this comment.
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 :)
|
Competing solution? #188 |
Uh oh!
There was an error while loading. Please reload this page.