We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To be checked.
Code references:
https://github.com/readium/readium-shared-js/blob/develop/js/views/fixed_view.js#L424
else if(_leftPageView.isDisplaying() && _rightPageView.isDisplaying()) { if(_leftPageView.meta_height() == _rightPageView.meta_height()) { _contentMetaSize.width = _leftPageView.meta_width() + _rightPageView.meta_width(); _contentMetaSize.height = _leftPageView.meta_height(); _contentMetaSize.separatorPosition = _leftPageView.meta_width(); } else { //normalize by height _contentMetaSize.width = _leftPageView.meta_width() + _rightPageView.meta_width() * (_leftPageView.meta_height() / _rightPageView.meta_height()); _contentMetaSize.height = _leftPageView.meta_height(); _contentMetaSize.separatorPosition = _leftPageView.meta_width(); } }
https://github.com/readium/readium-shared-js/blob/develop/js/views/fixed_view.js#L320
var horScale = potentialContentSize.width / _contentMetaSize.width; var verScale = potentialContentSize.height / _contentMetaSize.height; var scale; if (_zoom.style == 'fit-width'){ scale = horScale; } else if (_zoom.style == 'fit-height'){ scale = verScale; } else if (_zoom.style == 'user'){ scale = _zoom.scale; } else{ scale = Math.min(horScale, verScale); }
The text was updated successfully, but these errors were encountered:
Screenshots:
Sorry, something went wrong.
readium#142 more refactoring
c9500ba
No branches or pull requests
To be checked.
Code references:
https://github.com/readium/readium-shared-js/blob/develop/js/views/fixed_view.js#L424
https://github.com/readium/readium-shared-js/blob/develop/js/views/fixed_view.js#L320
The text was updated successfully, but these errors were encountered: