-
Notifications
You must be signed in to change notification settings - Fork 20
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
readium cover image split across 2 pages #10
Comments
Hum I assume this is happening in Readium JS? We didn't ship any of the CSS in an app yet. See this issue (and the ones Daniel Weck listed as related). Quick fix: use Longer fix: set an height for both Say if you have
then, Also, |
I did finally solve this... however, I still don't understand the way the rules work on images. An image of a fixed size is inside a parent that has a variable size and is able/not able to contain the image and show it as a whole... what is the best way to manage this– especially if the parent is a page showing a full screen-page of a graphic novel? Any links to discussion on this would be truly useful to the work I'm doing at present. |
What do you mean? It has
I assume this is width/height in
Depends on the values you’re using and the image’s aspect ratio. If say you’re sizing a portrait image based on its width while the screen has a landscape ratio, then your image won’t be entirely displayed on the screen, it will overflow.
You’re probably better off using something like what we’re using as a safeguard. Won’t work in the older versions of RMSDK though, as it doesn’t support There is really no perfect way to deal with that everywhere, which is why we have designed those safeguards when pagination is set (by the user). We have interop with iBooks so if it works in iBooks, it will work in Readium 2. That's the max we can do in Readium CSS though; should you have other issues, please feel free to file them in the Readium-shared-js repo and ping me so that I can provide a CSS fix there. |
Here is the issue that I've come across (sorry, have not yet tested with the 'safeguard' styles you recommend.. will do that next). But, I don't see this issue in the repo (although, there is a lot there and I haven't read all of it) |
Ah OK I see, let me file this bug on the Readium-shared-js repo, encountered it as some point but I didn’t find time to report it on github. Thanks for the accidental reminder, I’ll update this issue to point to the Readium 1 issue. |
Behaviour exists even with 'safeguards'. Just tested. |
Yeah, the Readium you’re using to test your files doesn’t use Readium CSS at all, which is why I reported this issue on the other repo. You can add details there if needed: readium/readium-shared-js#402 FYI we’ll ship a proto next week but it doesn’t mean you’ll be able to access Readium CSS: we’ll just push stylesheets and docs on the master branch so that everyone (RS developers) can review and test them. Practical implementations will come later, probably in 2018. I’ll try to make that clear in the ReadMe, so that we can deal with issues’ scope more easily. |
Closing the issue as this is not related to the Readium CSS project. |
I'm trying to find a way to fit cover image onto single page. CSS has max-height: 95%; and max-width: auto; as well as a container p with object-fit: contain; and overflow: hidden;. But Readium is ignoring this. Any suggestions?
The text was updated successfully, but these errors were encountered: