Comments (4)
Please remember to check the "old" discussion thread (which wasn't imported here when the issue was moved):
readium/readium-js-viewer#51
from readium-shared-js.
Devs, see updatePagination() in reflowable_view.js
var columnizedContentWidth = _$epubHtml[0].scrollWidth
==> does not return the correct value in this particular case. However, these are correct:
$("body", _$epubHtml)[0].offsetWidth
$("body", _$epubHtml)[0].getBoundingClientRect().width
...unfortunately, even with overflow-x:visible, the CSS "right" offset (x axis) is not set correctly when switching pages.
This bug affects all WebKit-based web browser and WebViews, except Safari (at the moment).
from readium-shared-js.
Update: I have implemented a workaround which seems to work great. Testing now... (not just Japanese vertical writing, also Arabic Right To Left)
from readium-shared-js.
Fixed:
763d5b4
Could you please test the develop branch with Japanese ebooks that use vertical writing mode + Right To Left page progression direction (and optionally, HTML dir="rtl").
I personally tested several of those, one Arabic ebook, and several "regular" LTR reflowable ebooks with single-page and double-page (synthetic-spread).
Known caveat: deep linking into vertical-RTL documents is likely to fail, due to our existing "rectangle visibility" algorithm only suiting horizontal layout.
from readium-shared-js.
Related Issues (20)
- Chapters getting truncated [iOS - readium-shared-js library] HOT 4
- Absolutely positioned elements are misplaced HOT 5
- Building URL query parameters strips out #fragments HOT 1
- FAQ: custom external font faces
- Hyperlinking: hash fragment identifiers are discarded by internal pagination / scroll offset logic? HOT 3
- Use of reserved word "package" HOT 2
- Turn pages very slow in big html files with Android System Webview 63 HOT 25
- calculatePageIndexDeltaByRectangles has wrong logic calculating pageIndex HOT 6
- Build output: UMD bundle HOT 4
- Internet Explorer very slow to resize document with large spines (100+ pages)
- Please help, openContentUrl() dosen't work well in Electron app when the url contains #. HOT 1
- Rangy dependency not needed strictly-speaking (SMIL experimental feature + Juan's highlighter) HOT 2
- Firefox: Resize Sensor does not trigger when content after expanded element flows into following columns in a certain way
- Highlights HOT 1
- In Redium Reader CFI - is it possible to go exact CFI location in a reflowable document when search text location are multiple in a page HOT 4
- Is there any reason why navigator.epubReadingSystem is writable? HOT 2
- Invalid location/CFI received HOT 2
- Issue with continuous scrolling using (macOs + Safari) trackpad
- The page turn is not done with the readaloud
- API Document
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readium-shared-js.