View Single Post
Old 11-04-2016, 04:55 AM   #1
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 559
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
EPUB3: resize SVG in javascript

I'm working on a EPUB3 with a SVG inline image with animation and interactivity.
I'd like to change the SVG size, according to pixel width and height of the ebook page, because ADE desktop often opens ebook in landscape mode instead portrait ad "cut" the SVG in half.
I try window.innerWidth, window.innerHeight, it worked in iBooks, but I got wrong values in ADE. I try outerWidth / outerHeight, it worked in ADE, but I got wrong values in iBooks...

Suggestion?


Thank you


Fabrizio
fbrzvnrnd is offline   Reply With Quote