From 6bfc1d7c58ce4eebdd139c65b1cc60ffe6f050ba Mon Sep 17 00:00:00 2001 From: Gregor Gawol <gawol@ub.uni-leipzig.de> Date: Thu, 10 Dec 2020 14:44:54 +0100 Subject: [PATCH] refs #17831 [fid] get it box notices above range footer * content height gets get-it-box height as minimum for large resolutions --- .../fid/templates/ajax/resolverLinks-print.phtml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/themes/fid/templates/ajax/resolverLinks-print.phtml b/themes/fid/templates/ajax/resolverLinks-print.phtml index 8b6ef3b7073..45af2536d54 100644 --- a/themes/fid/templates/ajax/resolverLinks-print.phtml +++ b/themes/fid/templates/ajax/resolverLinks-print.phtml @@ -51,4 +51,19 @@ JS; <?php endif; ?> <?php /* finc-specific change #9274 - END */ ?> </div> +<?php /* #17831 */ ?> +<? $script = <<<JS + $(document).ready(function() { + if ($(window).width() >= 1200) { + var contentHeight = $('.media').height(); + var getitboxHeight = $('.getitbox').height(); + if (getitboxHeight > contentHeight) { + $('.media').css('min-height', getitboxHeight+'px'); + } + } + }); +JS; +?> +<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');?> +<?php /* #17831 END */ ?> <!-- fid: ajax - resolverlinks-print - END --> -- GitLab