bell notificationshomepageloginedit profileclubsdmBox

10% popularity   0 Reactions

I wrote a little script in JavaScript that allows the user to switch the language of the text displayed. It simply works by hiding the language blocks except for the one corresponding to the language requested.

The problem is that the first block may fit in a single page while the second spans over two pages, and iBooks doesn't notice the length of the content has changed, and the longer block gets truncated.

How to tell iBooks the content has changed to force re-calculating pagination and show as many pages as needed by the newly visible block?


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

Login to follow story

More posts by @Kimberly

0 Comments

Sorted by latest first Latest Oldest Best

 

Back to top