readium / readium-js-viewer

👁 ReadiumJS viewer: default web app for Readium.js library
BSD 3-Clause "New" or "Revised" License
550 stars 186 forks source link

[QUESTION] How to jump to the right position when a <P> tag displays in two pages. #636

Open hz0324 opened 7 years ago

hz0324 commented 7 years ago

I have found a method called openSpineItemElementCfi(idref, cfi), I can use it jump to the "start point of a certain

" if when I pass cfi parameter in such style "/4/36"

However, if the content of

is too long and divided into two pages (the first part is visible in the screen, but the second part is hidden), how can I jump to the specific position on the second part using openSpineItemElementCfi(idref, cfi)?

DEMO PIC tim 20170801101730

I have tried to pass CFI like "/4/36:234", it didn't work. Please help.

Thanks.

danielweck commented 7 years ago

@JCCR any idea?