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

Fix cover image resizing on Chrome browser #349

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

kimtuck
Copy link

@kimtuck kimtuck commented Nov 22, 2016

This pull request is Finalized

Related issue(s) and/or pull request(s)

See also #342

Test cases, sample files

Additional information

Please provide any and all information that might help us

On chrome browsers, the cover image takes up 100% width; whereas on firefox, etc they take up 100% height. This leads to the cover image appearing correct on firefox; but on chrome the image takes up multiple columns (and thus appears to occupy several pages). This code change causes Chrome to size the images so that they are 100% height, not 100% width.

This code is currently deployed in the Bibliotheca reader. This is certainly one way to fix the issue; there are other ways I'm sure.

Here is the markup from one of my ebooks that exhibits this behavior (view the comment's source to see the page source). The image is 467 x 700 px.


<title>Front Cover</title>


image

r.hanson added 2 commits November 21, 2016 17:05
…% width; whereas on firefox, etc they take up 100% height. This leads to the cover image appearing correct on firefox; but on chrome the image takes up multiple columns (and thus appears to occupy several pages). This code change causes Chrome to size the images so that they are 100% height, not 100% width.
# Conflicts:
#	js/views/reflowable_view.js
#	readium-cfi-js
@hz0324
Copy link

hz0324 commented Dec 8, 2016

@kimtuck

Hi, I am really interested in this problem.
But seems like the image in your post is gone, can you please kindly change it?

BTW, how did you get the cover page element? We have tried some methods but all failed. Thanks

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

Successfully merging this pull request may close these issues.

3 participants