-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Rendering problems in IOS 8 #204
Comments
Don't think there is a fix for this apart from the one you already mentioned. sorry |
i dealt with a the same thing of safari constantly triggering the resize event. Solved problem by dynamically grabbing the values for width and height.
also I overwrote the renderer.prototype.onResized on my renderer instance with something like
This appears to be almost exactly what the prototype method does, but it wasn't working. I also had to manually bind the browser resize event to trigger the function. |
We have a solution. We overwrote this methods:
|
@donflopez doesn't work for me |
Thanks all for this discussion - the auto expanding iframe in IOS are still an issue that break the rendering on IOS if you don't see the width and height. Since we already check for mobile browsers, I think we should use that to automatically set a width and height in it isn't already set as @donflopez and @crododile showed above. |
@fchasen Any progress on this Fred? I am implementing an iPad solution now and need some kind of work around for iOS.. thanks! |
@fchasen I need this too... is there any way that we could help? I am using the following method (hopefully this fix is still relevant):
|
Setting an explicit width and height for the ePub worked for me. Although there would be this issue where the ebook would keep shifting to the right every time by a pixel or two I went to the next page, and it would reset back to normal at the start of a chapter. I fixed this by making sure that the width was always even.
|
Hello!
I'm having some troubles using epub.js embedded inside a webview at IOS 8. I've already found this issue #162 but I don't know if it's exactly the same bug.
The problem is that, when I go to the next page, the text inside the iframe begins to "move", the resize event is triggered infinitely on window, and inline styles on iframe are continuously changing.
I tried to override the setLeft method using:
but It doesn't work. The only solution that seems to work properly is defining an explicit width and height at epub declaration:
Is there any other solution to this problem? I would prefer a fluid iframe instead of one width fixed sizes.
Thanks in advance!
The text was updated successfully, but these errors were encountered: