Answers.Body: <p>I don't have much ability to answer your question (especially without seeing your code or knowing the required space in the viewport to hide or display). </p>
  
  <p>I'm aware of and have occasionally tested things on Readium. But I never had a use case for supporting Readium for epubs. </p>
  
  <p>If you support  ibooks and ADE, that's covering a lot of ground. I assume it means you have also tested on Google Play Books. </p>
  
  <p><strong>Update:</strong> I see that Bluefire has released an ios reader based on readium. So that counts for something. That is still a sliver of reading audience. </p>
  
  <p>You said this is related to resizing. I have noticed that some apps have resizing flakiness. But resizing is something you usually do on a PC browser, not a mobile device. I would worry about whether this issue shows up on mobile devices. </p>
  
  <p>Let me mention that Google Play Books also has  problems with regard to css related to page size. See my previous question here: <a href="https://ebooks.stackexchange.com/questions/6539/how-well-does-google-play-books-support-page-oriented-css-i-e-page-breaks">How well does Google Play Books support page-oriented css? (i.e., page breaks)</a> ).   If Readium is based on Chrome code base, I have to wonder if this issue is rooted in Chrome instead of Readium or GPB. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-14T17:19:09.857Z
Answers.Text: NEMO XXX How right you are. June 2016 Readium made an announcement that BlueFire released an app based on Readium SDK. That does not mean it is abandoning Adobe just yet... http://readium.org/news/bluefire-releases-readium-based-cloudshelf-reader-app
Answers.UserDisplayName: idiotprogrammer
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-14T17:20:41.060Z
Answers.Text: From the Readium Press release:  "The newly launched Cloudshelf app is a separate business line from Bluefire Reader white label apps, which Bluefire will continue to offer and maintain."
Answers.UserDisplayName: idiotprogrammer
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-13T19:54:09.287Z
Answers.LastActivityDate: 2016-07-13T20:00:27.287Z
Answers.LastEditDate: 2017-04-13T13:00:05.480Z
Answers.UserDisplayName: idiotprogrammer
Body: <p>I have an interactive ebook that hides answers from the learner until he/she clicks a <strong>Show</strong> button.</p>
  
  <p>The show function then toggles an div element between <code>display:none</code> and <code>display:block</code>. All answers are initialized with <code>display:none</code>.</p>
  
  <p>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.</p>
  
  <p>The bottom of the page when the answer is hidden:
  <a href="https://i.sstatic.net/SOjZG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/SOjZG.png" alt="The bottom of the page when the answer is hidden"></a></p>
  
  <p>The bottom of the page when the answer is shown
  <a href="https://i.sstatic.net/ArVdV.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ArVdV.png" alt="The bottom of the page when the answer is shown"></a></p>
  
  <p>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.</p>
  
  <p>Is there a way for me to force the size update on the readium scrollview using JS?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-13T19:25:19.193Z
Comments.Text: Just out of curiosity, why do you need Readium support? I'd be far more interested in how things render in Google Play Books or when converted to Kindle.
Comments.UserDisplayName: idiotprogrammer
Tags: <ebook-readers><epub><html>
Title: Resize readium document if content body has changed
UserDisplayName: Morne
ThreadText: # Resize readium document if content body has changed
  
  (Asked by: username_0 on 2016-07-12)
  
  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 hidden](https://i.sstatic.net/SOjZG.png)](https://i.sstatic.net/SOjZG.png)
  
  The bottom of the page when the answer is shown
  [![The bottom of the page when the answer is shown](https://i.sstatic.net/ArVdV.png)](https://i.sstatic.net/ArVdV.png)
  
  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?
  
  **Tags:** ebook-readers, epub, html
  
  > **Comments:**
  > **username_1**: Just out of curiosity, why do you need Readium support? I'd be far more interested in how things render in Google Play Books or when converted to Kindle.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-13. Score: 1
  
  I don't have much ability to answer your question (especially without seeing your code or knowing the required space in the viewport to hide or display).
  
  I'm aware of and have occasionally tested things on Readium. But I never had a use case for supporting Readium for epubs.
  
  If you support ibooks and ADE, that's covering a lot of ground. I assume it means you have also tested on Google Play Books.
  
  **Update:** I see that Bluefire has released an ios reader based on readium. So that counts for something. That is still a sliver of reading audience.
  
  You said this is related to resizing. I have noticed that some apps have resizing flakiness. But resizing is something you usually do on a PC browser, not a mobile device. I would worry about whether this issue shows up on mobile devices.
  
  Let me mention that Google Play Books also has problems with regard to css related to page size. See my previous question here: [How well does Google Play Books support page-oriented css? (i.e., page breaks)](https://ebooks.stackexchange.com/questions/6539/how-well-does-google-play-books-support-page-oriented-css-i-e-page-breaks) ). If Readium is based on Chrome code base, I have to wonder if this issue is rooted in Chrome instead of Readium or GPB.
  
  > **Comments:**
  > **username_1**: NEMO XXX How right you are. June 2016 Readium made an announcement that BlueFire released an app based on Readium SDK. That does not mean it is abandoning Adobe just yet... http://readium.org/news/bluefire-releases-readium-based-cloudshelf-reader-app  
  > **username_1**: From the Readium Press release:  "The newly launched Cloudshelf app is a separate business line from Bluefire Reader white label apps, which Bluefire will continue to offer and maintain."  
  
  ---
  
  