PHRAS-2863 #comment Lightbox mobile: resize pdf iframe #time 3h

This commit is contained in:
Harrys Ravalomanana
2020-01-07 10:55:11 +04:00
parent 98c40b754d
commit 4d768889f2

View File

@@ -93,5 +93,14 @@
</div>
</div>
<script type="text/javascript">
/*resize of PDF */
$(window).on("load resize ",function(e){
if($('.pdf-iframe').length > 0) {
var pdfHeight = $('.pdf-iframe').width() / 0.707;
$('.pdf-iframe').css('height', pdfHeight);
}
});
</script>
{% endblock %}