I'm showing images and pdfs using same fancybox initialization, created and initialized as :
<a class="fancybox" href="/path/to/imageORpdf" data-fancybox-group="gallery" title="Step : ${status.count }">
Step : ${status.count }
</a>
$('.fancybox').fancybox({
'width': '90%',
'height': '100%',
'transitionIn': 'elastic',
'transitionOut': 'elastic',
type: 'iframe',
cyclic: true,
});
Without type='iframe' images opens with original size, but it does not work for pdf.
With type='iframe' to show pdf, then images open in iframe but with extended iframe size.
I want to open images as original size and pdf with width='90%'.
How to do this ?
I'm using fancybox 2.1.5 version.