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

Horizontal scroll code for v0.4.0 #228

Merged
merged 59 commits into from Jun 29, 2018
Merged

Conversation

hrishikesh-kadam
Copy link
Contributor

No description provided.

Gautam and others added 30 commits March 1, 2018 17:00
When a xhtml contents is loaded with text/html MIME type, the page might
load into Quirks mode. So it is neccessary to load xhtml pages with
application/xhtml+xml MIME type.

If the page gets loaded in Quirks mode, then majority of the modern CSS
styles might not work.

References -
https://stackoverflow.com/questions/8052178/difference-between-document-documentelement-clientheight-and-document-body-clien
https://en.wikipedia.org/wiki/Quirks_mode
document.documentElement.scrollWidth gives incorrect value when the
webview is busy re-drawing contents.
Reproducable only on Android Chrome and not on Desktop Chrome.
This is done because if the html and body has its own margins then
vertical direction doesn't have any issue but for horizontal direction
pagination layout breaks.
If the text is set here then it would change only when next page is
selected.
@mahavir155 mahavir155 merged commit 267109d into FolioReader:master Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants