|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2014
Device: Readium
|
Ibooks, Epub3 and fixed layout overflow?
I want to create a epub and display in Ibooks, this epub have a fixed layout but is dynamically generated, the result may have varying dimensions, but in ibooks needs a viewport with static width and height, for example:
Code:
<meta content="width=768, height=576" name="viewport"/> Also, some page have dynamic content and this can grow the size i tried device-height or 100% and didn't work Right now i put all content of the page in a DIV with this style: Code:
body > nav > ol {
width: 90%;
margin-left: 2%;
margin-right: 2%;
}
.epub_content, body > nav {
width: 740px;
max-width: 740px;
min-width: 740px;
height: 536px;
max-height: 536px;
-webkit-overflow-scrolling: touch;
overflow-x: hidden;
overflow-y: auto;
padding: 8px 0px;
}
.exp_resource {
max-width: 740px;
overflow: hidden;
}
.window_container {
width: 770px;
max-width: 770px;
min-width: 770px;
height: 545px;
max-height: 545px;
-webkit-overflow-scrolling: touch;
overflow-x: hidden;
overflow-y: auto;
}
Anyone know how to make scrollable page in epub with fixed layout? Regards |
|
|
|
|
|
#2 | |||||
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
I didn't really understand the first part of what you're trying to do but regarding this part:
Quote:
1. Add a div with class "test" to your html page Quote:
Quote:
Quote:
Quote:
I attached a file with this working, disregard the rest, I just took some fixed layout ePub I had and added your part. What you need is located in p01.xhtml and style.css Last edited by odedta; 05-14-2014 at 02:53 PM. |
|||||
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2014
Device: Readium
|
i did something similar but links from navigation doesn't works in page with scrollbar, i attach and example
|
|
|
|
|
|
#4 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Well, I took this as a challenge and for the past 2 hours or so I tried every possible javascript event I could find to get it to scroll after the page turned.
I have no idea why it's not working, I have a hunch it's not possible in ePub. I have basically created a button with onlick event to fire this: Quote:
There might be some iBooks or ePub quirk to get this right, hopefully someone will post it here. :/ This feels a lot like the iPad1 (iBooks 5.1.1) problem with links, it goes to the page but does not focus you on the anchor. Last edited by odedta; 05-14-2014 at 06:34 PM. |
|
|
|
|
|
|
#5 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Oh, just incase you're looking for the full code I attached the file I was testing on.
You should use Calibre's Check Book function, there are a lot of errors in the file you uploaded. |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2014
Device: Readium
|
Sorry for my english
Thanks, you've helped me a lot, let me check the epub I will research more about this problem I'll post if I find something Regards |
|
|
|
![]() |
| Tags |
| epub, fixed_layout, ibooks |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with fixed layout epub 3 and iBooks version 2 | verydeepwater | ePub | 10 | 04-22-2014 06:11 PM |
| fixed layout text display on iBooks | rnuss | ePub | 3 | 03-24-2014 07:26 AM |
| Start page on fixed layout epub3 | brunobruno | ePub | 12 | 03-30-2013 02:50 AM |
| Creating Fixed Layout ePub3 from InDesign | flipick | ePub | 12 | 03-14-2013 10:22 AM |
| epub3 Sigil Poetry(fixed layout) | Giggleton | Sigil | 7 | 04-04-2011 01:58 PM |