From 3cb3a86c6fdbc4389ea70951ed0d3525c75bd618 Mon Sep 17 00:00:00 2001 From: srosse <stephane.rosse@frentix.com> Date: Thu, 20 Jun 2019 17:02:59 +0200 Subject: [PATCH] OO-4097: resize always the background size of the hotspot's solution --- .../olat/ims/qti21/ui/_content/assessment_results.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/olat/ims/qti21/ui/_content/assessment_results.html b/src/main/java/org/olat/ims/qti21/ui/_content/assessment_results.html index f530557c040..1961d72a932 100644 --- a/src/main/java/org/olat/ims/qti21/ui/_content/assessment_results.html +++ b/src/main/java/org/olat/ims/qti21/ui/_content/assessment_results.html @@ -520,11 +520,9 @@ }); jQuery('#collapse_${itemResult.interactionResults.solutionFormItem.name} div.o_oo_hotcontainer>div').each(function(index, el) { var jEl = jQuery(el); - if(jEl.css('height') == '0px') { - var containerEl = jEl.closest("div.o_oo_hotcontainer"); - jEl.css('height', containerEl.css('height')); - jEl.css('background-size', containerEl.css('width') + " " + containerEl.css('height')); - } + var containerEl = jEl.closest("div.o_oo_hotcontainer"); + jEl.css('height', containerEl.css('height')); + jEl.css('background-size', containerEl.css('width') + " " + containerEl.css('height')); }); }) }); -- GitLab