builtbywill / booklet

jQuery Plugin - display web content in a flipbook
http://builtbywill.com/booklet
Other
292 stars 109 forks source link

Auto Sizing Dynamic #38

Open j0nr opened 10 years ago

j0nr commented 10 years ago

Hi,

Just trying to implement this great plugin.

I am trying to create a landscape format booklet (imagine postcards). I have a series of images that are all the same aspect ratio. What I would like to be able to do is set the width to 100% (to fill screen sideways) and then some how set the height to be equal to the height of the images (that have scaled to fill the width of whatever device is viewing it).

Is this possible?

Thanks.

HandHugs commented 10 years ago

Would like the same function - auto height for the book would be nice!

tpkyteroo commented 9 years ago

My issue is that whatever image I use for the background page, I can't get it to show up at full size. However, I'm not expecting a response from him, as it seems like he's too busy to update this project.

faina09 commented 5 years ago

you can do this using getters and setters, like this:

$(window).on('resize', function () { var width = $("#mybook").booklet("option", "width"); $("#mybook").booklet("option", "height", width*10/16); });