Epubjs position of text changes when resizing the book

Viewed 172

I am building an epub reader using epubjs library in reactjs. The issue i'm facing is when i try to resize the book some contents/text from previous page render or get displayed in the current page.

On initial loading of book rendition.resize("100%", "100%"); enter image description here

When i open the side menu i have to resize the book to fit the content on the screen rendition.resize("80%", "100%");. enter image description here

Is there a way in epubjs to fix the content in image1 so that even i resize the book the position of text wont change.

0 Answers
Related