From 19144aea15efd49ecdb367d647da80b7bd6ae9b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 17 Jul 2016 11:48:16 +0200 Subject: [PATCH] style: fix resizing of pdf.js iframe in Chrome (#12615) --- welco/templates/welco/home.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/welco/templates/welco/home.html b/welco/templates/welco/home.html index ab43f65..7c90c51 100644 --- a/welco/templates/welco/home.html +++ b/welco/templates/welco/home.html @@ -37,7 +37,8 @@ $('div.cell').delegate('h2', 'click', function() { $(window).on('resize', function() { if ($('.top iframe').length == 1) { var top_form_height = $('.top form').height(); - $('.top iframe').css('height', 'calc(100% - ' + top_form_height + 'px)'); + var top_height = $('.top > div').height(); + $('.top iframe').css('height', top_height - top_form_height); } else { $('iframe').css('height', '100%'); }