I have an interactive ebook that hides answers from the learner until he/she clicks a Show button.
The show function then toggles an div element between display:none
and display:block
. All answers are initialized with display:none
.
This causes no issues in iBooks or Adobe DE, but in readium the scrollview that contains the html does not resize when the div is shown. The images below should explain a bit better.
The bottom of the page when the answer is hidden:
The bottom of the page when the answer is shown
Notice the extra content barely visible below the answer block, the scrollbar is at the bottom and cannot scroll down any further. Once I manually resize redium, the scrollview is automatically fixed.
Is there a way for me to force the size update on the readium scrollview using JS?